Variable: eshell-exec-hook

eshell-exec-hook is a customizable variable defined in esh-proc.el.gz.

Value

nil

Documentation

Called each time a process is exec'd by eshell-gather-process-output.

It is passed one argument, which is the process that was just started. It is useful for things that must be done each time a process is executed in an eshell mode buffer (e.g., set-process-query-on-exit-flag). In contrast, eshell-mode-hook is only executed once, when the buffer is created.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-proc.el.gz
(defcustom eshell-exec-hook nil
  "Called each time a process is exec'd by `eshell-gather-process-output'.
It is passed one argument, which is the process that was just started.
It is useful for things that must be done each time a process is
executed in an eshell mode buffer (e.g., `set-process-query-on-exit-flag').
In contrast, `eshell-mode-hook' is only executed once, when the buffer
is created."
  :type 'hook)