summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org19
1 files changed, 19 insertions, 0 deletions
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.
1629 (add-hook 'pdf-view-mode-hook #'acdw/disable-visual-fill-column-mode)) 1629 (add-hook 'pdf-view-mode-hook #'acdw/disable-visual-fill-column-mode))
1630#+end_src 1630#+end_src
1631 1631
1632** E-book tools
1633
1634 #+begin_src emacs-lisp
1635 (straight-use-package 'nov)
1636
1637 (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
1638
1639 (cuss nov-text-width t
1640 "Disable text filling -- `visual-fill-column-mode' takes care
1641 of that.")
1642
1643 (defun acdw/setup-nov-mode ()
1644 (visual-fill-column-mode +1)
1645 (setq visual-fill-column-center-text t)
1646 (text-scale-increase +1))
1647
1648 (add-hook 'nov-mode-hook #'acdw/setup-nov-mode)
1649 #+end_src
1650
1632* Appendices 1651* Appendices
1633 1652
1634** Emacs' files 1653** Emacs' files