From 5cda3fe77c2ad68515a57399a6dc7851c9319b99 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 10 Oct 2025 19:41:04 +0200 Subject: [PATCH] Remove redundant exit hook for deleting eshell buffer This is already handled by `eshell-kill-on-exit`, and results in error messages inserted in the then shown buffer. --- init.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/init.el b/init.el index 29b2be2..6acf3d7 100644 --- a/init.el +++ b/init.el @@ -2867,11 +2867,7 @@ 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))) - - ;; Close window after eshell is gone - (advice-add 'eshell-life-is-too-much - :after #'delete-window))) + (setq-local completion-in-region-function #'completion--in-region))))) (use-package em-prompt :commands (eshell-previous-prompt