Function: horizontal-scroll-bar-mode
horizontal-scroll-bar-mode is an interactive and byte-compiled
function defined in scroll-bar.el.gz.
Signature
(horizontal-scroll-bar-mode &optional ARG)
Documentation
Toggle horizontal scroll bars on all frames (Horizontal Scroll Bar mode).
This command applies to all frames that exist and frames to be created in the future.
This is a global minor mode. If called interactively, toggle the
Horizontal-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 (default-value \=horizontal-scroll-bar-mode)'.
The mode's hook is called both when the mode is enabled and when it is disabled.
Probably introduced at or before Emacs version 25.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/scroll-bar.el.gz
(define-minor-mode horizontal-scroll-bar-mode
"Toggle horizontal scroll bars on all frames (Horizontal Scroll Bar mode).
This command applies to all frames that exist and frames to be
created in the future."
:init-value nil
:global t
:group 'frames
(if (and horizontal-scroll-bar-mode
(not (horizontal-scroll-bars-available-p)))
(progn
(setq horizontal-scroll-bar-mode nil)
(message "Horizontal scroll bars are not implemented on this system"))
(dolist (frame (frame-list))
(set-frame-parameter
frame 'horizontal-scroll-bars horizontal-scroll-bar-mode))
;; Handle `default-frame-alist' entry.
(setq default-frame-alist
(cons (cons 'horizontal-scroll-bars horizontal-scroll-bar-mode)
(assq-delete-all 'horizontal-scroll-bars
default-frame-alist)))))