commit 4deb3ff3d9989c4062c7e629498240166e35ae42
parent 44f9859cf12641ef81f4706dcc09d9f917b9a689
Author: Anton Konyahin <me@konyahin.xyz>
Date: Thu, 6 Apr 2023 13:59:37 +0300
emacs: fix error on non-x systems
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
@@ -1,6 +1,8 @@
;; base settings
-(tool-bar-mode 0)
-(scroll-bar-mode 0)
+(if (display-graphic-p)
+ (progn
+ (tool-bar-mode 0)
+ (scroll-bar-mode 0)))
(setq make-backup-files nil)
(setq auto-save-default nil)