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
This commit is contained in:
Daniel Borchmann 2025-09-28 18:05:50 +02:00
parent 3984dc4264
commit c3a659c33e
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

View File

@ -2496,6 +2496,11 @@ Note that this workaround is incomplete, as explained in this comment."
;;* Navigation ;;* 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 (use-package ace-window
:ensure t :ensure t
:commands (ace-window :commands (ace-window