A set of display-buffer
actions to display buffers in a predictable way, to be used with display-buffer-alist
and some helpers to manage windows & tabs
(add-to-list 'display-buffer-alist
`(,(rx bot (or "*Help*" "*helpful" "*info*"))
(,(predictable-reuse-some-window (buf)
(->> buf
(buffer-name)
(string-match-p (rx bot (or "*Help" "*helpful" "*info*")))))
display-buffer-pop-up-window
predictable-reuse-largest-window)
(inhibit-same-window . t)))
predictable-close-others
Command: Close other tabs
predictable-close-to-the-left
Command: Close other tabs to the left
predictable-close-to-the-right
Command: Close other tabs to the left
predictable-close-with-window-maybe
Function: Close tab, delete window when the last tab closed.
predictable-reuse-largest-window
Function: Display ‘buffer’ on the largest window.
predictable-reuse-some-window
Macro: Factory to create a display-buffer action that attempts to
predictable-toggle-dedicated
Command: Toggles window dedication of the selected window.
GPL