aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/programs.texi33
1 files changed, 30 insertions, 3 deletions
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index bc8d39c974f..e6871e3ff34 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -833,9 +833,36 @@ displayed. The default is 102400.
833@findex show-paren-mode 833@findex show-paren-mode
834 Show Paren mode, a global minor mode, provides a more powerful kind 834 Show Paren mode, a global minor mode, provides a more powerful kind
835of automatic matching. Whenever point is before an opening delimiter 835of automatic matching. Whenever point is before an opening delimiter
836or after a closing delimiter, both that delimiter and its opposite 836or after a closing delimiter, the delimiter, its matching delimiter,
837delimiter are highlighted. To toggle Show Paren mode, type @kbd{M-x 837and optionally the text between them are highlighted. To toggle Show
838show-paren-mode}. 838Paren mode, type @kbd{M-x show-paren-mode}. To customize it, type
839@kbd{M-x customize-group @key{RET} paren-showing}. The customizable
840options which control the operation of this mode include:
841
842@itemize @bullet
843@item
844@code{show-paren-highlight-open-paren} controls whether to highlight
845an open paren when point stands just before it, and hence its position
846is marked by the cursor anyway. The default is non-@code{nil} (yes).
847
848@item
849@code{show-paren-style} controls whether just the two parens, or also
850the space between them get highlighted. The valid options here are
851@code{parenthesis} (show the matching paren), @code{expression}
852(highlight the entire expression enclosed by the parens), and
853@code{mixed} (highlight the matching paren if it is visible, the
854expression otherwise).
855
856@item
857@code{show-paren-when-point-inside-paren}, when non-@code{nil}, causes
858highlighting also when point is on the inside of a parenthesis.
859
860@item
861@code{show-paren-when-point-in-periphery}, when non-@code{nil}, causes
862highlighting also when point is in whitespace at the beginning or end
863of a line, and there is a paren at, respectively, the first or last,
864or the last, non-whitespace position on the line.
865@end itemize
839 866
840@cindex Electric Pair mode 867@cindex Electric Pair mode
841@cindex inserting matching parentheses 868@cindex inserting matching parentheses