dot/emacs, el/dot-emacs.el: New gadget to force window selection.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 2 May 2022 11:52:20 +0000 (12:52 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 2 May 2022 11:52:20 +0000 (12:52 +0100)
commit4ebbf6a71a9ddff39cdb512c3aa4c0bbe59578b2
tree808b9b9e24f238b8554796a75e94fb6c629698c3
parent183e55e2d8a6203d14cefbe6b55ee4bc66628525
dot/emacs, el/dot-emacs.el: New gadget to force window selection.

I'm fed up with Emacs `display-buffer', which seems carefully designed
to read my mind and choose the least convenient possible window display
a buffer in.

Introduce a new command `mdw-designate-window', bound to `C-c w SPC',
which marks a window as being the target for the next buffer shown by
`display-buffer' when its caller doesn't have a better plan.  This
leaves alone things like Magit popups, which already know that they want
to go at the bottom of the current window (and that's fine).
dot/emacs
el/dot-emacs.el