diff options
author | Vincent Ambo <mail@tazj.in> | 2020-09-05T23·35+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-09-05T23·38+0000 |
commit | 7f1c9bc23403d60082905c72ee827735d0869a79 (patch) | |
tree | ef2ff22dd4a89cbf133f97cf99ef69e892caf097 | |
parent | 11430f4a4b3d4b2f6cfc103e574768dbcc64b517 (diff) |
fix(tazjin/emacs): Kill vterm buffers if their process exits r/1764
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
-rw-r--r-- | users/tazjin/emacs/config/init.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/users/tazjin/emacs/config/init.el b/users/tazjin/emacs/config/init.el index 9f9573a3a8c7..9f34c60a8d25 100644 --- a/users/tazjin/emacs/config/init.el +++ b/users/tazjin/emacs/config/init.el @@ -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 |