More side window rules

This commit is contained in:
BirDt_ 2026-05-20 20:17:04 +08:00
parent 0cc4aad979
commit 19b852f9c0
2 changed files with 7 additions and 1 deletions

View file

@ -41,7 +41,7 @@
`("magit:" `("magit:"
(display-buffer-in-side-window) (display-buffer-in-side-window)
(side . ,(if (equal system-type 'android) 'top 'right)) (side . ,(if (equal system-type 'android) 'top 'right))
(slot . ,(if (equal system-type 'android) 0 4)) (slot . ,(if (equal system-type 'android) 0 3))
(window-width . 0.2))) (window-width . 0.2)))
(provide 'git-interface) (provide 'git-interface)

View file

@ -54,6 +54,12 @@
(side . bottom) (side . bottom)
(slot . 1))) (slot . 1)))
(add-to-list 'display-buffer-alist
`("\\*Buffer List\\*"
(display-buffer-in-side-window)
(side . bottom)
(slot . 1)))
(defun mark-side-window-as-no-other (orig-fun &rest args) (defun mark-side-window-as-no-other (orig-fun &rest args)
"Set `no-other-window' to t for any window being displayed as a side window." "Set `no-other-window' to t for any window being displayed as a side window."
(let ((window (apply orig-fun args))) (let ((window (apply orig-fun args)))