From 8a9d8f03e28a9b816385e755fe42d41425e9f612 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 5 Jan 2020 20:12:05 -0500 Subject: [PATCH] Fix void-function set-scroll-bar-mode #2310 When emacs is built without GUI support. --- early-init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/early-init.el b/early-init.el index 02ba00bb2..eea1e8fc2 100644 --- a/early-init.el +++ b/early-init.el @@ -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