From c3a659c33e1591dffda9246e7fa77a4605cbf7a8 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 28 Sep 2025 18:05:50 +0200 Subject: [PATCH] Use most-recently used window for other scrolling Taken from [the Emacs Window Management Almanac][1], for trying it out. [1]: https://karthinks.com/software/emacs-window-management-almanac/#scroll-other-window--built-in --- init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.el b/init.el index 94f5e33..04275db 100644 --- a/init.el +++ b/init.el @@ -2496,6 +2496,11 @@ Note that this workaround is incomplete, as explained in this comment." ;;* Navigation +(setopt other-window-scroll-default #'(lambda () + (or (get-mru-window nil nil 'not-this-one) + (next-window) + (next-window nil nil 'visible)))) + (use-package ace-window :ensure t :commands (ace-window