diff options
author | Grant Shangreaux <shoshin@cicadas.surf> | 2023-02-14 12:02:14 -0600 |
---|---|---|
committer | Grant Shangreaux <shoshin@cicadas.surf> | 2023-02-14 12:03:38 -0600 |
commit | 563cde73b661fcb84ca1c42b79e8b2db121796dd (patch) | |
tree | b61cb47b79b1b4055fcd3f250812482df614f407 | |
parent | c3826f0c16e16965478a5dfc132158190775de70 (diff) |
Add: nov.el, slime setup fix, and ox-md eval after load
-rw-r--r-- | shoshimacs.el | 11 | ||||
-rw-r--r-- | shoshimacs.org | 18 |
2 files changed, 28 insertions, 1 deletions
diff --git a/shoshimacs.el b/shoshimacs.el index 2246d07..cd40724 100644 --- a/shoshimacs.el +++ b/shoshimacs.el @@ -268,6 +268,17 @@ erc-interpret-mirc-color t erc-hide-list '("JOIN" "PART" "QUIT")) +(defvar nov.el-repo "https://depp.brause.cc/nov.el.git") +(defvar nov.el-src-dir (expand-file-name "~/src/nov.el/")) + +(unless (file-directory-p nov.el-src-dir) + (shell-command + (format "git clone %s %s" nov.el-repo nov.el-src-dir))) + +(add-to-list 'load-path nov.el-src-dir) +(require 'nov) +(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) + ;;; External Services (package-install 'plz) diff --git a/shoshimacs.org b/shoshimacs.org index fa70167..65e4590 100644 --- a/shoshimacs.org +++ b/shoshimacs.org @@ -627,7 +627,7 @@ get us where we are looking to go 😃 *** exporting #+begin_src - (require 'ox-md) + (with-eval-after-load 'org (require 'ox-md)) #+end_src **** htmilze @@ -902,6 +902,22 @@ Emacs MultiMedia System. erc-hide-list '("JOIN" "PART" "QUIT")) #+end_src +** nov.el major mode for reading EPUBs + +#+name: install-nov.el +#+begin_src emacs-lisp + (defvar nov.el-repo "https://depp.brause.cc/nov.el.git") + (defvar nov.el-src-dir (expand-file-name "~/src/nov.el/")) + + (unless (file-directory-p nov.el-src-dir) + (shell-command + (format "git clone %s %s" nov.el-repo nov.el-src-dir))) + + (add-to-list 'load-path nov.el-src-dir) + (require 'nov) + (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) +#+end_src + * External Services :PROPERTIES: :header-args:emacs-lisp: :noweb-ref external-services :noweb-sep "\n\n" :results silent |