Variable: sh-electric-here-document-mode-hook
sh-electric-here-document-mode-hook is a customizable variable defined
in sh-script.el.gz.
Value
nil
Documentation
Hook run after entering or leaving sh-electric-here-document-mode(var)/sh-electric-here-document-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/sh-script.el.gz
(define-minor-mode sh-electric-here-document-mode
"Make << insert a here document skeleton."
:lighter nil
(if sh-electric-here-document-mode
(add-hook 'post-self-insert-hook #'sh--maybe-here-document nil t)
(remove-hook 'post-self-insert-hook #'sh--maybe-here-document t)))