jixiuf / vterm-toggle

toggles between the vterm buffer and whatever buffer you are editing.
GNU General Public License v3.0
188 stars 12 forks source link

which-key buffer problem #3

Closed injae closed 5 years ago

injae commented 5 years ago

which-key buffer size is transformed by vterm-toggle.

Screenshot-20190723140332-1920x1054 Screenshot-20190723140405-1920x1054

jixiuf commented 5 years ago

try this

(setq vterm-toggle-fullscreen-p nil)
(add-to-list 'display-buffer-alist
             '("^v?term.*"
                (display-buffer-reuse-window display-buffer-in-direction)
                (reusable-frames . visible)
                (direction . bottom)
                ;;(window-width . 0.3)
                (window-height . 0.3)))

which-key-mode and vterm use the same side window when you use display-buffer-in-side-window

injae commented 5 years ago

Thank you for your reply. vterm-toggle function error symbol function definition is void: display-buffer-in-direction

jixiuf commented 5 years ago

try replace display-buffer-in-direction with display-buffer-at-bottom

sorry display-buffer-in-direction is added in emacs27

+++
** New buffer display action function 'display-buffer-in-direction'.
This function allows to specify the location of the window chosen by
'display-buffer' in various ways.
injae commented 5 years ago

The issue has been resolved. Thank you for quick response.