Variable: term-exec-hook

term-exec-hook is a customizable variable defined in term.el.gz.

Value

nil

Documentation

Called each time a process is exec'd by term-exec.

This is called after the process is cranked up. It is useful for things that must be done each time a process is executed in a term mode buffer (e.g., set-process-query-on-exit-flag). In contrast, term-mode-hook is only executed once, when the buffer is created.

Source Code

;; Defined in /usr/src/emacs/lisp/term.el.gz
(defcustom term-exec-hook '()
  "Called each time a process is exec'd by `term-exec'.
This is called after the process is cranked up.  It is useful for things that
must be done each time a process is executed in a term mode buffer (e.g.,
`set-process-query-on-exit-flag').  In contrast, `term-mode-hook' is only
executed once, when the buffer is created."
  :type 'hook
  :group 'term)