Function: nroff-electric-mode
nroff-electric-mode is an interactive and byte-compiled function
defined in nroff-mode.el.gz.
Signature
(nroff-electric-mode &optional ARG)
Documentation
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.
This is a minor mode. If called interactively, toggle the
Nroff-Electric 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 nroff-electric-mode(var)/nroff-electric-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
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")))