Update nov settings

This commit is contained in:
Marcus Kammer 2024-01-17 21:58:05 +01:00
parent 212da3999e
commit 50fd3bf77f
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -19,11 +19,13 @@
shrface-toggle-bullets t shrface-toggle-bullets t
shr-width nil)) shr-width nil))
(defun mk/nove-font-settings ()
(setq-local line-spacing 2)
(face-remap-add-relative 'variable-pitch :weight 'normal :height 1.1 :family "Bitter Pro"))
(use-package nov (use-package nov
:hook ((nov-mode . visual-line-mode) :hook ((nov-mode . visual-line-mode)
(nov-mode . (lambda () (nov-mode . mk/nove-font-settings))
(setq-local line-spacing 2)
(face-remap-add-relative 'variable-pitch :weight 'normal :height 1.0 :family "Bitter Pro"))))
:mode ("\\.epub\\'" . nov-mode) :mode ("\\.epub\\'" . nov-mode)
:init :init
(add-hook 'nov-mode-hook #'shrface-mode) (add-hook 'nov-mode-hook #'shrface-mode)