From 3f80ad2b947d919e15bd37a24c67b70636fded68 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 19 Sep 2025 17:19:32 +0200 Subject: [PATCH] Close eshell buffers on exit They appear when opening eshell, so they should go when exiting eshell. --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index af970fe..e8647e3 100644 --- a/init.el +++ b/init.el @@ -2847,7 +2847,11 @@ Note that this workaround is incomplete, as explained in this comment." ;; outside of Emacs. (add-hook 'eshell-mode-hook #'(lambda () - (setq-local completion-in-region-function #'completion--in-region))))) + (setq-local completion-in-region-function #'completion--in-region))) + + ;; Close window after eshell is gone + (advice-add 'eshell-life-is-too-much + :after #'delete-window))) (use-package em-prompt :commands (eshell-previous-prompt