eshell-mode-unload-hook

eshell-mode-unload-hook is a variable defined in `esh-mode.el'.
Its value is
nil

  • This variable may be risky if used as a file-local variable.

Documentation:
A hook that gets run when `eshell-mode' is unloaded.

You can customize this variable.