Use Noto Serif in nov mode
This commit is contained in:
parent
51145d2a76
commit
392cfc594c
1 changed files with 6 additions and 5 deletions
|
@ -21,17 +21,18 @@
|
|||
|
||||
(use-package nov
|
||||
:hook ((nov-mode . visual-line-mode)
|
||||
(nov-mode . (lambda () (if (eq system-type 'windows-nt)
|
||||
(setq-local line-spacing 2)
|
||||
(setq-local line-spacing 4)))))
|
||||
(nov-mode . (lambda () (face-remap-add-relative 'variable-pitch :weight 'normal :height 120 :family "Noto Serif"))))
|
||||
:mode ("\\.epub\\'" . nov-mode)
|
||||
:init
|
||||
(add-hook 'nov-mode-hook #'shrface-mode)
|
||||
:custom
|
||||
(nov-header-line-format nil)
|
||||
(nov-text-width 82)
|
||||
(nov-variable-pitch t)
|
||||
:config
|
||||
(setq nov-text-width 82
|
||||
nov-variable-pitch t)
|
||||
(if (eq system-type 'windows-nt)
|
||||
(setq-local line-spacing 2)
|
||||
(setq-local line-spacing 4))
|
||||
(require 'shrface)
|
||||
(setq nov-shr-rendering-functions '((img . nov-render-img) (title . nov-render-title)))
|
||||
(setq nov-shr-rendering-functions (append nov-shr-rendering-functions shr-external-rendering-functions)))
|
||||
|
|
Loading…
Add table
Reference in a new issue