Emacsg: Only disable scroll-bar-mode and tool-bar-mode if defined

The mode functions may not be defined when using an Emacs compiled
with "--without-x", in which case disabling these modes (1) isn't
necessary because they can't possibly be enabled and (2) trying to
call one of these undefined function would result in an error.

Closes #21.
This commit is contained in:
Jonas Bernoulli 2020-05-30 23:19:46 +02:00
parent 88849d5c04
commit 0fac0c05e5

View File

@ -18,8 +18,10 @@
(setq inhibit-startup-echo-area-message "locutus")
(setq initial-buffer-choice t)
(setq initial-scratch-message "")
(scroll-bar-mode 0)
(tool-bar-mode 0)
(when (fboundp 'scroll-bar-mode)
(scroll-bar-mode 0))
(when (fboundp 'tool-bar-mode)
(tool-bar-mode 0))
(menu-bar-mode 0))
(progn ; `borg'