fix(tazjin/emacs): Kill vterm buffers if their process exits

This has somehow stopped being a thing in newer vterm versions,
causing the weird behaviour with my term switcher - buffers with the
correct name were sticking around, but no longer in the right mode.

Change-Id: Ie641eb3db91808d7d1016de1e8ef3ad271c8995e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1931
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2020-09-06 00:35:01 +01:00 committed by tazjin
parent 11430f4a4b
commit 7f1c9bc234

View file

@ -165,7 +165,8 @@
:config (progn
(setq vterm-shell "fish")
(setq vterm-exit-functions
(lambda (&rest _) (kill-buffer (current-buffer))))))
(lambda (&rest _) (kill-buffer (current-buffer))))
(setq vterm-kill-buffer-on-exit t)))
;; vterm removed the ability to set a custom title generator function
;; via the public API, so this overrides its private title generation