Variable: eshell-exit-hook
eshell-exit-hook is a customizable variable defined in esh-mode.el.gz.
Value
nil
Documentation
A hook that is run whenever eshell is exited.
This hook is only run if exiting actually kills the buffer.
This variable was added, or its default value changed, in Emacs 24.1.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-mode.el.gz
(defcustom eshell-exit-hook nil
"A hook that is run whenever `eshell' is exited.
This hook is only run if exiting actually kills the buffer."
:version "24.1" ; removed eshell-query-kill-processes
:type 'hook)