I am using emacs 24.5 under Linux Gentoo, and I would like to adjust the vertical scroll bar width, as I notice it became much larger than it was in a recent revision.
How to do this in my ".emacs" file ? I tried to manually set variable scroll-bar-width, but emacs reports it does not know this variable (although I came across it while reading the documentation).
Alternatively, I could live without the scroll bar after all (more text space is always fine with me).
M-x describe-variable RET scroll-bar-width RET
and this is the result: "scroll-bar-width
is a variable defined in 'C source code'. Its value isnil
. Automatically becomes buffer-local when set. Documentation: Width of this buffer's scroll bars in pixels. A value ofnil
means to use the scroll bar width from the window's frame." You might try something like this in your.emacs
file:(setq-default scroll-bar-width 15)
and restart Emacs. See also the functionset-window-scroll-bars
. – lawlist Sep 13 '15 at 19:30(add-to-list 'default-frame-alist '(vertical-scroll-bars . nil))
– lawlist Sep 13 '15 at 19:43