mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 03:56:12 +01:00
44d4a46362
Signed-off-by: magic_rb <magic_rb@redalder.org>
1.1 KiB
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))