emacs: make minor refinements to display-buffer-alist

This commit is contained in:
Protesilaos 2026-08-15 21:41:13 +03:00
parent d332c08c28
commit 1c4cce305e
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 8 additions and 6 deletions

View file

@ -96,7 +96,7 @@
(display-buffer-reuse-mode-window display-buffer-at-bottom)
(inhibit-switch-frame . t))
;; below current window
("*prot-elisp-macroexpand*"
("\\*prot-elisp-macroexpand\\*"
(display-buffer-below-selected)
(window-height . 0.3)
(dedicated . t)
@ -154,9 +154,10 @@
(display-buffer-reuse-mode-window prot-window-display-new display-buffer-pop-up-window)
(inhibit-switch-frame . t))
;; other `tab-bar-mode' tab
((derived-mode . magit-status-mode)
((or . ((derived-mode . magit-status-mode)
(derived-mode . vc-dir-mode)))
(display-buffer-reuse-mode-window display-buffer-in-tab)
(mode . magit-status-mode)
(mode . (magit-status-mode vc-dir-mode))
(tab-name . (lambda (buffer _alist) (buffer-name buffer)))
(reusable-frames . :just-the-selected-frame)
(inhibit-switch-frame . t)))))

View file

@ -6767,7 +6767,7 @@ to a certain height.
(display-buffer-reuse-mode-window display-buffer-at-bottom)
(inhibit-switch-frame . t))
;; below current window
("*prot-elisp-macroexpand*"
("\\*prot-elisp-macroexpand\\*"
(display-buffer-below-selected)
(window-height . 0.3)
(dedicated . t)
@ -6825,9 +6825,10 @@ to a certain height.
(display-buffer-reuse-mode-window prot-window-display-new display-buffer-pop-up-window)
(inhibit-switch-frame . t))
;; other `tab-bar-mode' tab
((derived-mode . magit-status-mode)
((or . ((derived-mode . magit-status-mode)
(derived-mode . vc-dir-mode)))
(display-buffer-reuse-mode-window display-buffer-in-tab)
(mode . magit-status-mode)
(mode . (magit-status-mode vc-dir-mode))
(tab-name . (lambda (buffer _alist) (buffer-name buffer)))
(reusable-frames . :just-the-selected-frame)
(inhibit-switch-frame . t)))))