aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-markup.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-11 21:32:36 +1100
committerYuchen Pei <id@ypei.org>2025-01-11 21:32:36 +1100
commit264fae53a90395463f65561c2a6ac6f194521abd (patch)
tree0ea1f56bcce3590709bfad7ca5a6e4e81f18b277 /emacs/.emacs.d/init/ycp-markup.el
parent7b7dc00de551543a102ad7baff9e234cb0da8cb2 (diff)
[emacs] improve nov configHEADmaster
margins without fringes
Diffstat (limited to 'emacs/.emacs.d/init/ycp-markup.el')
-rw-r--r--emacs/.emacs.d/init/ycp-markup.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/emacs/.emacs.d/init/ycp-markup.el b/emacs/.emacs.d/init/ycp-markup.el
index fcb98ff..548461d 100644
--- a/emacs/.emacs.d/init/ycp-markup.el
+++ b/emacs/.emacs.d/init/ycp-markup.el
@@ -93,11 +93,13 @@
(my-package nov
(:delay 15)
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
- (setq nov-text-width 76)
+ ;; No fill, so it requires visual line mode to look nice
+ (setq nov-text-width t)
+ (add-hook 'nov-mode-hook 'visual-line-mode)
(add-hook 'nov-mode-hook 'follow-mode)
(add-hook 'nov-mode-hook (lambda ()
(setq next-screen-context-lines 4)))
- (add-hook 'nov-post-html-render-hook 'my-nov-set-left-margin)
+ (add-hook 'nov-post-html-render-hook 'my-nov-set-margins)
(require 'my-nov)
(my-override nov-render-title)
(my-override nov-scroll-up)