Have popup manager handle treemacs windows
Other windows would be resized slightly incorrectly because treemacs opens as a fixed split, rather than a side window. This change forces it to be a side window, which resolves the problem _and_ restores the functionality of balance-windows, which is disabled when a fixed split is present.
This commit is contained in:
parent
7f284e98b6
commit
28e21352ec
1 changed files with 8 additions and 0 deletions
|
@ -282,6 +282,14 @@ instead of switch-to-buffer-*."
|
||||||
(set-popup-rule! "\\(^\\*Contents\\|'s annots\\*$\\)" :ignore t))
|
(set-popup-rule! "\\(^\\*Contents\\|'s annots\\*$\\)" :ignore t))
|
||||||
|
|
||||||
|
|
||||||
|
;; `treemacs'
|
||||||
|
(after! treemacs
|
||||||
|
(set-popup-rule! "^ \\*Treemacs" :side 'left :size treemacs-width :quit nil)
|
||||||
|
(defun +popup*set-popup (&rest _)
|
||||||
|
(+popup--init (selected-window)))
|
||||||
|
(advice-add #'treemacs--setup-buffer :after #'+popup*set-popup))
|
||||||
|
|
||||||
|
|
||||||
;; `wgrep'
|
;; `wgrep'
|
||||||
(progn
|
(progn
|
||||||
;; close the popup after you're done with a wgrep buffer
|
;; close the popup after you're done with a wgrep buffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue