Make sure modes are available before toggling.
This commit is contained in:
parent
ae69599a0d
commit
193fa1463d
@ -34,7 +34,8 @@
|
|||||||
global-undo-tree-mode ; use undo-tree-mode globally
|
global-undo-tree-mode ; use undo-tree-mode globally
|
||||||
;; Enable more modes by adding them here
|
;; Enable more modes by adding them here
|
||||||
))
|
))
|
||||||
(funcall mode 1))
|
(when (fboundp mode)
|
||||||
|
(funcall mode 1)))
|
||||||
|
|
||||||
(dolist (mode '(blink-cursor-mode ; stop blinking cursor
|
(dolist (mode '(blink-cursor-mode ; stop blinking cursor
|
||||||
menu-bar-mode ; no menubar
|
menu-bar-mode ; no menubar
|
||||||
@ -42,7 +43,8 @@
|
|||||||
scroll-bar-mode ; scrollbar? no
|
scroll-bar-mode ; scrollbar? no
|
||||||
;; Disable more modes by adding them here.
|
;; Disable more modes by adding them here.
|
||||||
))
|
))
|
||||||
(funcall mode 0))
|
(when (fboundp mode)
|
||||||
|
(funcall mode 0)))
|
||||||
|
|
||||||
;; No splash screen
|
;; No splash screen
|
||||||
(setq inhibit-splash-screen t)
|
(setq inhibit-splash-screen t)
|
||||||
|
Loading…
Reference in New Issue
Block a user