Variable: nroff-electric-mode-hook
nroff-electric-mode-hook is a customizable variable defined in
nroff-mode.el.gz.
Value
nil
Documentation
Hook run after entering or leaving nroff-electric-mode(var)/nroff-electric-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/textmodes/nroff-mode.el.gz
(define-minor-mode nroff-electric-mode
"Toggle automatic nroff request pairing (Nroff Electric mode).
Nroff Electric mode is a buffer-local minor mode, for use with
`nroff-mode'. When enabled, Emacs checks for an nroff request at
the beginning of the line, and inserts the matching closing
request if necessary. This command toggles that mode (off->on,
on->off), with an argument, turns it on if arg is positive,
otherwise off."
:lighter " Electric"
(or (derived-mode-p 'nroff-mode) (error "Must be in nroff mode")))