Variable: show-paren-mode-hook
show-paren-mode-hook is a customizable variable defined in
paren.el.gz.
Value
nil
Documentation
Hook run after entering or leaving show-paren-mode(var)/show-paren-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
Source Code
;; Defined in /usr/src/emacs/lisp/paren.el.gz
;;;###autoload
(define-minor-mode show-paren-mode
"Toggle visualization of matching parens (Show Paren mode).
When enabled, any matching parenthesis is highlighted in `show-paren-style'
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
(cancel-timer show-paren--idle-timer)
(setq show-paren--idle-timer nil))
(setq show-paren--idle-timer (run-with-idle-timer
show-paren-delay t
#'show-paren-function))
(unless show-paren-mode
(show-paren--delete-overlays)))