Fix void-function set-scroll-bar-mode #2310

When emacs is built without GUI support.
This commit is contained in:
Henrik Lissner 2020-01-05 20:12:05 -05:00
parent d18e298a9e
commit 8a9d8f03e2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -15,7 +15,8 @@
;; Prevent the glimpse of un-styled Emacs by disabling these UI elements early.
(setq tool-bar-mode nil
menu-bar-mode nil)
(set-scroll-bar-mode nil)
(when (fboundp 'set-scroll-bar-mode)
(set-scroll-bar-mode nil))
;; Resizing the Emacs frame can be a terribly expensive part of changing the
;; font. By inhibiting this, we easily halve startup times with fonts that are