Variable: scroll-bar-mode

scroll-bar-mode is a customizable variable defined in scroll-bar.el.gz.

Value

nil

Documentation

Specify whether to have vertical scroll bars, and on which side.

Possible values are nil (no scroll bars), left (scroll bars on left) and right (scroll bars on right). To set this variable in a Lisp program, use set-scroll-bar-mode to make it take real effect. Setting the variable with a customization buffer also takes effect.

View in manual

Probably introduced at or before Emacs version 20.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/scroll-bar.el.gz
(defcustom scroll-bar-mode default-frame-scroll-bars
  "Specify whether to have vertical scroll bars, and on which side.
Possible values are nil (no scroll bars), `left' (scroll bars on left)
and `right' (scroll bars on right).
To set this variable in a Lisp program, use `set-scroll-bar-mode'
to make it take real effect.
Setting the variable with a customization buffer also takes effect."
  :type '(choice (const :tag "none (nil)" nil)
		 (const left)
		 (const right))
  :group 'frames
  ;; The default value for :initialize would try to use :set
  ;; when processing the file in cus-dep.el.
  :initialize 'custom-initialize-default
  :set (lambda (_sym val) (set-scroll-bar-mode val)))