dotfiles/emacs-lisp/nov_el.org
magic_rb e7f90c4a87
Add nov.el
Signed-off-by: magic_rb <magic_rb@redalder.org>
2023-11-03 20:26:12 +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 ("\\.py\\'" . 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))