Variable: shell-indirect-setup-hook

shell-indirect-setup-hook is a customizable variable defined in shell.el.gz.

Value

nil

Documentation

Hook run in an indirect buffer for input fontification.

Input fontification and indentation of a shell-mode buffer, if enabled, is performed in an indirect buffer, whose indentation and syntax highlighting is set up with sh-mode. In addition to comint-indirect-setup-hook, run this hook with the indirect buffer as the current buffer after its setup is done. This can be used to further customize fontification and other behavior of the indirect buffer.

This variable was added, or its default value changed, in Emacs 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/shell.el.gz
(defcustom shell-indirect-setup-hook nil
  "Hook run in an indirect buffer for input fontification.
Input fontification and indentation of a `shell-mode' buffer, if
enabled, is performed in an indirect buffer, whose indentation
and syntax highlighting is set up with `sh-mode'.  In addition to
`comint-indirect-setup-hook', run this hook with the indirect
buffer as the current buffer after its setup is done.  This can
be used to further customize fontification and other behavior of
the indirect buffer."
  :type 'hook
  :group 'shell
  :version "29.1")