From 7f1c9bc23403d60082905c72ee827735d0869a79 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 6 Sep 2020 00:35:01 +0100 Subject: 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 Tested-by: BuildkiteCI --- users/tazjin/emacs/config/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'users/tazjin/emacs') 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 -- cgit 1.4.1