Variable: scroll-bar-mode-hook
scroll-bar-mode-hook is a customizable variable defined in
scroll-bar.el.gz.
Value
nil
Documentation
Hook run after entering or leaving scroll-bar-mode(var)/scroll-bar-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/scroll-bar.el.gz
(define-minor-mode scroll-bar-mode
"Toggle vertical scroll bars on all frames (Scroll Bar mode).
This command applies to all frames that exist, as well as new
frames to be created in the future. This is done by altering the
frame parameters, so if you (re-)set `default-frame-alist' after
toggling the scroll bars on or off with this command, the scroll
bars may reappear on new frames."
:variable ((get-scroll-bar-mode)
. (lambda (v) (set-scroll-bar-mode
(if v (or previous-scroll-bar-mode
default-frame-scroll-bars))))))