Close eshell buffers on exit
They appear when opening eshell, so they should go when exiting eshell.
This commit is contained in:
parent
4a5f3c44f9
commit
3f80ad2b94
6
init.el
6
init.el
@ -2847,7 +2847,11 @@ 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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user