1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* lisp/paren.el (show-paren-delay): Add a :set function. Doc fix. (Bug#12297)

This commit is contained in:
Glenn Morris 2012-08-29 21:44:11 -04:00
parent 31d024384c
commit 69ba1f0420
2 changed files with 15 additions and 1 deletions

View file

@ -52,8 +52,17 @@ otherwise)."
:group 'paren-showing)
(defcustom show-paren-delay 0.125
"Time in seconds to delay before showing a matching paren."
"Time in seconds to delay before showing a matching paren.
If you change this without using customize while `show-paren-mode' is
active, you must toggle the mode off and on again for this to take effect."
:type '(number :tag "seconds")
:initialize 'custom-initialize-default
:set (lambda (sym val)
(if (not show-paren-mode)
(set sym val)
(show-paren-mode -1)
(set sym val)
(show-paren-mode 1)))
:group 'paren-showing)
(defcustom show-paren-priority 1000