summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-01 16:50:54 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-01 16:50:54 +0100
commit0f1b8c712e5c8bb92e40521f3ea3e20fa9578cce (patch)
tree761a9afb8eff7cc40b632aae03a3e67a9d2ff7d2 /.config/emacs
parent03e0fbcf2c1d52aa63adfc8301c00fc9da313b06 (diff)
emacs: Recenter the screen when jumping
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/modules/mm-editing.el10
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