From 1336fc11a3bbc3daf84d5a577a68029c17dad0be Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 5 Jan 2021 09:29:06 -0600 Subject: Add nov.el --- config.org | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config.org b/config.org index 59fecb0..3c44ca9 100644 --- a/config.org +++ b/config.org @@ -1629,6 +1629,25 @@ I’m only enabling this at home for now, since it requires building stuff. (add-hook 'pdf-view-mode-hook #'acdw/disable-visual-fill-column-mode)) #+end_src +** E-book tools + + #+begin_src emacs-lisp + (straight-use-package 'nov) + + (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) + + (cuss nov-text-width t + "Disable text filling -- `visual-fill-column-mode' takes care + of that.") + + (defun acdw/setup-nov-mode () + (visual-fill-column-mode +1) + (setq visual-fill-column-center-text t) + (text-scale-increase +1)) + + (add-hook 'nov-mode-hook #'acdw/setup-nov-mode) + #+end_src + * Appendices ** Emacs' files -- cgit 1.4.1-21-gabe81