term-exec-hook
term-exec-hook is a variable defined in `
term.el
'.
Its value is
nil
- This variable may be risky if used as a file-local variable.
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.,
`process-kill-without-query'). In contrast, `term-mode-hook' is only
executed once when the buffer is created.
You can customize this variable.