diff options
author | Yuchen Pei <id@ypei.org> | 2025-01-11 21:32:36 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2025-01-11 21:32:36 +1100 |
commit | 264fae53a90395463f65561c2a6ac6f194521abd (patch) | |
tree | 0ea1f56bcce3590709bfad7ca5a6e4e81f18b277 /emacs/.emacs.d/lisp/my/my-nov.el | |
parent | 7b7dc00de551543a102ad7baff9e234cb0da8cb2 (diff) |
margins without fringes
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-nov.el')
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-nov.el | 5 |
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 |