aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/lisp
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/lisp
parent7b7dc00de551543a102ad7baff9e234cb0da8cb2 (diff)
[emacs] improve nov configHEADmaster
margins without fringes
Diffstat (limited to 'emacs/.emacs.d/lisp')
-rw-r--r--emacs/.emacs.d/lisp/my/my-nov.el5
1 files changed, 3 insertions, 2 deletions
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