dotfiles/emacs-lisp/nov_el.org
magic_rb 44d4a46362
Fix nov.el being opened for python files
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-02-09 12:44:25 +01:00

1.1 KiB

Nov.el

Load nov.el and it's undeclared dependency esxml.

  (use-package esxml
    :straight t
    :after visual-fill-column
    :init
    <<define-center-hook>>
    <<hook-epub>>
    :hook
    <<hook-visual-fill-column>>
    <<hook-nov-mode-center>>
    :config
    <<disable-text-filling>>)

  (use-package nov
    :straight t)
  :mode ("\\.epub\\'" . nov-mode)
  (nov-mode . visual-fill-column-mode)
  (nov-mode . visual-line-mode)
  (setq nov-text-width t)
  (nov-mode . nov-mode-center)
  (defun nov-mode-center ()
    (setq visual-fill-column-center-text t))