Function: scroll-bar-mode
scroll-bar-mode is an interactive and byte-compiled function defined
in scroll-bar.el.gz.
Signature
(scroll-bar-mode &optional ARG)
Documentation
Toggle vertical scroll bars on all frames (Scroll Bar mode).
This is a minor mode. If called interactively, toggle the Scroll-Bar
mode mode. If the prefix argument is positive, enable the mode, and
if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the
mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate (get-scroll-bar-mode).
The mode's hook is called both when the mode is enabled and when it is disabled.
This command applies to all frames that exist and frames to be created in the future.
Probably introduced at or before Emacs version 20.1.
Key Bindings
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 and frames to be
created in the future."
:variable ((get-scroll-bar-mode)
. (lambda (v) (set-scroll-bar-mode
(if v (or previous-scroll-bar-mode
default-frame-scroll-bars))))))