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.
This commit is contained in:
Daniel Borchmann 2025-10-10 19:41:04 +02:00
parent e8d1035f0c
commit 5cda3fe77c
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

View File

@ -2867,11 +2867,7 @@ Note that this workaround is incomplete, as explained in this comment."
;; outside of Emacs. ;; outside of Emacs.
(add-hook 'eshell-mode-hook (add-hook 'eshell-mode-hook
#'(lambda () #'(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 (use-package em-prompt
:commands (eshell-previous-prompt :commands (eshell-previous-prompt