Function: sh-electric-here-document-mode
sh-electric-here-document-mode is an interactive and byte-compiled
function defined in sh-script.el.gz.
Signature
(sh-electric-here-document-mode &optional ARG)
Documentation
Make << insert a here document skeleton.
This is a minor mode. If called interactively, toggle the
Sh-Electric-Here-Document mode mode. If the prefix argument is
positive, enable the mode, and if it is zero or negative, disable the
mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate the variable sh-electric-here-document-mode(var)/sh-electric-here-document-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Probably introduced at or before Emacs version 24.3.
Key Bindings
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)))