mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
tools/magit: don't make new windows too tall
Some popups (like logs or revisions) completely consume the current window.
This commit is contained in:
@ -19,9 +19,9 @@
|
|||||||
;; magit windows to be visible; especially magit-status).
|
;; magit windows to be visible; especially magit-status).
|
||||||
((or (bound-and-true-p git-commit-mode)
|
((or (bound-and-true-p git-commit-mode)
|
||||||
(derived-mode-p 'magit-mode))
|
(derived-mode-p 'magit-mode))
|
||||||
(let ((size (cond ((eq buffer-mode 'magit-process-mode) 0.35)
|
(let ((size (if (eq buffer-mode 'magit-process-mode)
|
||||||
((bound-and-true-p git-commit-mode) 0.7)
|
0.35
|
||||||
(0.9))))
|
0.7)))
|
||||||
`(display-buffer-below-selected
|
`(display-buffer-below-selected
|
||||||
. ((window-height . ,(truncate (* (window-height) size)))))))
|
. ((window-height . ,(truncate (* (window-height) size)))))))
|
||||||
;; log/stash/process buffers, unless opened from a magit-status
|
;; log/stash/process buffers, unless opened from a magit-status
|
||||||
|
Reference in New Issue
Block a user