From 0f1b8c712e5c8bb92e40521f3ea3e20fa9578cce Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 1 Nov 2024 16:50:54 +0100 Subject: emacs: Recenter the screen when jumping --- .config/emacs/modules/mm-editing.el | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.config/emacs') 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 @@ -27,6 +27,16 @@ makefile-backslash-region)) (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 -- cgit v1.2.3