From 264fae53a90395463f65561c2a6ac6f194521abd Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sat, 11 Jan 2025 21:32:36 +1100 Subject: [emacs] improve nov config margins without fringes --- emacs/.emacs.d/lisp/my/my-nov.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'emacs/.emacs.d/lisp/my/my-nov.el') diff --git a/emacs/.emacs.d/lisp/my/my-nov.el b/emacs/.emacs.d/lisp/my/my-nov.el index d893017..1bc8eca 100644 --- a/emacs/.emacs.d/lisp/my/my-nov.el +++ b/emacs/.emacs.d/lisp/my/my-nov.el @@ -64,8 +64,9 @@ chapter title." (my-copy-file-with-staging nov-file-name dest staging))) -(defun my-nov-set-left-margin () - (set-left-margin (point-min) (point-max) 2)) +(defun my-nov-set-margins () + (set-window-margins nil 3 2) + (set-window-fringes nil 0 0)) (provide 'my-nov) ;;; my-nov.el ends here -- cgit v1.2.3