Skip to content

Commit 596442a

Browse files
committed
refactor(multi-vterm): move display buffer properties to me-window
1 parent 5b83f5a commit 596442a

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

modules/me-tools.el

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,6 @@
8585
"otT" #'multi-vterm
8686
"ott" #'multi-vterm-dedicated-toggle
8787
"otp" #'multi-vterm-project)
88-
;; Show at bottom
89-
(add-to-list 'display-buffer-alist
90-
`("\\*vterminal - .*\\*" ;; multi-vterm-project / dedicated
91-
(display-buffer-reuse-window display-buffer-in-direction)
92-
(direction . bottom)
93-
(dedicated . t)
94-
(reusable-frames . visible)
95-
(window-height . 0.3)))
9688
:custom
9789
(multi-vterm-dedicated-window-height-percent 30)
9890
:config

modules/me-window.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@
5151
;; Terminal buffers
5252
(add-to-list
5353
'display-buffer-alist
54-
`(,(rx bol "*" (or "eshell" "terminal" "shell" "Shell Command Output" "Async Shell Command") "*" eol)
54+
`(,(rx bol "*" (or "eshell" "terminal" "shell" "Shell Command Output" "Async Shell Command" (seq "vterminal - " (* any))) "*" eol)
5555
(display-buffer-reuse-window display-buffer-at-bottom)
5656
(dedicated . t) ;; Close when finished
57+
(direction . bottom)
5758
(reusable-frames . visible) ;;
5859
(window-height . 0.3)))
5960

0 commit comments

Comments
 (0)