mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Improve documentation of 'electric-pair-mode'
* lisp/elec-pair.el (electric-pair-mode): * doc/emacs/programs.texi (Matching): Document the operation of electric-pair-mode when there's an active region. (Bug#30502)
This commit is contained in:
parent
f74ab96483
commit
f138bca8ca
2 changed files with 16 additions and 8 deletions
|
|
@ -580,8 +580,11 @@ the mode if ARG is omitted or nil.
|
|||
|
||||
Electric Pair mode is a global minor mode. When enabled, typing
|
||||
an open parenthesis automatically inserts the corresponding
|
||||
closing parenthesis. (Likewise for brackets, etc.). To toggle
|
||||
the mode in a single buffer, use `electric-pair-local-mode'."
|
||||
closing parenthesis, and vice versa. (Likewise for brackets, etc.).
|
||||
If the region is active, the parentheses (brackets, etc.) are
|
||||
inserted around the region instead.
|
||||
|
||||
To toggle the mode in a single buffer, use `electric-pair-local-mode'."
|
||||
:global t :group 'electricity
|
||||
(if electric-pair-mode
|
||||
(progn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue