FIX only disable interface components if they exist (which they may not in a CI environment)

This commit is contained in:
Nathan Dwarshuis 2021-03-14 14:50:08 -04:00
parent e3381bdc90
commit 9164a6cf10
1 changed files with 7 additions and 3 deletions

View File

@ -479,9 +479,13 @@ I like to keep the modeline clean and uncluttered. This package prevents certain
:END:
Emacs comes with some useless garbage by default. IMHO (in my haughty opinion), text editors should be boxes with text in them. No menu bars, scroll bars, or toolbars (and certainly no ribbons).
#+BEGIN_SRC emacs-lisp
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(defmacro nd/disable-when-bound (fun)
`(when (fboundp (function ,fun))
(,fun -1)))
(nd/disable-when-bound tool-bar-mode)
(nd/disable-when-bound menu-bar-mode)
(nd/disable-when-bound scroll-bar-mode)
#+END_SRC
** startup screen
:PROPERTIES: