about summary refs log tree commit diff
path: root/users/tazjin
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-09-05T23·35+0100
committertazjin <mail@tazj.in>2020-09-05T23·38+0000
commit7f1c9bc23403d60082905c72ee827735d0869a79 (patch)
treeef2ff22dd4a89cbf133f97cf99ef69e892caf097 /users/tazjin
parent11430f4a4b3d4b2f6cfc103e574768dbcc64b517 (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
Diffstat (limited to 'users/tazjin')
-rw-r--r--users/tazjin/emacs/config/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/users/tazjin/emacs/config/init.el b/users/tazjin/emacs/config/init.el
index 9f9573a3a8..9f34c60a8d 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