suonlight / multi-vterm

Managing multiple vterm buffers in Emacs
GNU General Public License v3.0
209 stars 22 forks source link

Avoid `switch-to-buffer` when launching multi-vterm #23

Open karthink opened 2 years ago

karthink commented 2 years ago

The usage of switch-to-buffer in the multi-vterm command makes the initial display of vterm ignore the user's display-buffer-alist customization.

To reproduce this, you can set:

(setq display-buffer-alist
'(("^\\*vterminal.*$" display-buffer-at-bottom)))

and run M-x multi-vterm.

Consider replacing it with pop-to-buffer-same-window, or let-binding switch-to-buffer-obey-display-actions around the switch-to-buffer call instead?