Function: toggle-horizontal-scroll-bar

toggle-horizontal-scroll-bar is an interactive and byte-compiled function defined in scroll-bar.el.gz.

Signature

(toggle-horizontal-scroll-bar ARG)

Documentation

Toggle whether or not the selected frame has horizontal scroll bars.

With ARG, turn on horizontal scroll bars if and only if ARG is positive.

Probably introduced at or before Emacs version 25.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/scroll-bar.el.gz
(defun toggle-horizontal-scroll-bar (arg)
  "Toggle whether or not the selected frame has horizontal scroll bars.
With ARG, turn on horizontal scroll bars if and only if ARG is positive."
  (interactive "P")
  (if (null arg)
      (setq arg
	    (if (frame-parameter nil 'horizontal-scroll-bars) -1 1))
    (setq arg (prefix-numeric-value arg)))
  (modify-frame-parameters
   (selected-frame)
   (list (cons 'horizontal-scroll-bars
	       (when (> arg 0) 'bottom)))))