diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-11-01 16:50:54 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-11-01 16:50:54 +0100 |
commit | 0f1b8c712e5c8bb92e40521f3ea3e20fa9578cce (patch) | |
tree | 761a9afb8eff7cc40b632aae03a3e67a9d2ff7d2 /.config/emacs/modules/mm-editing.el | |
parent | 03e0fbcf2c1d52aa63adfc8301c00fc9da313b06 (diff) |
emacs: Recenter the screen when jumping
Diffstat (limited to '.config/emacs/modules/mm-editing.el')
-rw-r--r-- | .config/emacs/modules/mm-editing.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/emacs/modules/mm-editing.el b/.config/emacs/modules/mm-editing.el index 2f19335..d52eeca 100644 --- a/.config/emacs/modules/mm-editing.el +++ b/.config/emacs/modules/mm-editing.el @@ -28,6 +28,16 @@ (advice-add command :around #'mm-editing-force-space-indentation)) +;;; Recenter The Screen When Jumping + +(dolist (command #'(backward-page + backward-paragraph + forward-page + forward-paragraph + pop-global-mark)) + (advice-add command :around #'mm-do-and-center)) + + ;;; Indentation Settings (setq-default |