Enable show-paren-mode by default

* etc/NEWS (https): Mention the change.

* lisp/paren.el (show-paren-mode):
Enable by default, as discussed on emacs-devel.
This commit is contained in:
Dmitry Gutov
2021-09-29 03:48:27 +03:00
parent 568b8b977f
commit ee856b76ff
2 changed files with 10 additions and 1 deletions

View File

@@ -1077,10 +1077,17 @@ This command is bound to 'C-x C-k d'.
It used to be enabled when Emacs is started in GUI mode but not when started
in text mode. The cursor still only actually blinks in GUI frames.
** 'show-paren-mode' is now enabled by default.
To go back to the previous behavior, customize the user option by the
same name to nil.
+++
** New minor mode 'show-paren-local-mode'.
It serves as a local counterpart for 'show-paren-mode', allowing you
to toggle it separately in different buffers.
to toggle it separately in different buffers. To use it only in
programming modes, for example, add the following to your init file:
(add-hook 'prog-mode-hook #'show-paren-local-mode)
* Changes in Specialized Modes and Packages in Emacs 28.1

View File

@@ -107,6 +107,8 @@ after `show-paren-delay' seconds of Emacs idle time.
This is a global minor mode. To toggle the mode in a single buffer,
use `show-paren-local-mode'."
:global t :group 'paren-showing
:initialize 'custom-initialize-delay
:init-value t
;; Enable or disable the mechanism.
;; First get rid of the old idle timer.
(when show-paren--idle-timer