about summary refs log tree commit diff stats
path: root/.emacs.d
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-09-13 16:03:02 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-09-13 16:03:02 +0100
commitb5551f53fb9b56aa5ba870b20fa69d15a5babc89 (patch)
treea272cabe3c107d9b75a62021c7057910cdd8de3b /.emacs.d
parent76b31811c08e863934abc71054c5467993576598 (diff)
downloaddotfiles-b5551f53fb9b56aa5ba870b20fa69d15a5babc89.tar.gz
Fix terminal startup issue
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/early-init.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/.emacs.d/early-init.el b/.emacs.d/early-init.el
index 8bdcc72..a12132e 100644
--- a/.emacs.d/early-init.el
+++ b/.emacs.d/early-init.el
@@ -19,9 +19,10 @@
 (add-to-list 'default-frame-alist '(fullscreen . maximized))
 
 (menu-bar-mode -1)
-(tool-bar-mode -1)
-(scroll-bar-mode -1)
-(horizontal-scroll-bar-mode -1)
+(when window-system
+  (tool-bar-mode -1)
+  (scroll-bar-mode -1)
+  (horizontal-scroll-bar-mode -1))
 
 (setq package-enable-at-startup nil)