mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-28 19:16:14 +01:00
e7f90c4a87
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 ("\\.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))