mirror of
https://github.com/emacscollective/emacs.g.git
synced 2025-05-16 12:08:45 -04:00
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:
parent
88849d5c04
commit
0fac0c05e5
6
init.el
6
init.el
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user