diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/emacs/init.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 5def6aee..ff9c6902 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -702,7 +702,9 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (concat (eshell/pwd) "\n$ ")) eshell-prompt-regexp "^[$][[:blank:]]" eshell-cmpl-cycle-completions nil) - (add-hook 'eshell-exit-hook #'evil-window-delete))) + (add-hook 'eshell-exit-hook (lambda () + (when (window-deletable-p) + (delete-window)))))) (use-package eshell-toggle :after projectile |