commit 62f3404403c361c8c7efa5456c5a30e5e0b6feea
parent b24e8338d1b91ec4ea4797a92a301770f529ca1e
Author: Cem Keylan <cem@ckyln.com>
Date: Mon, 2 Mar 2020 11:29:01 +0300
remove toolbar when emacs is compiled with X
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/init.el b/init.el
@@ -3,8 +3,10 @@
;; Disable the clutter
(menu-bar-mode 0)
-(tool-bar-mode 0)
-(scroll-bar-mode 0)
+(when (display-graphic-p)
+ (tool-bar-mode 0)
+ (scroll-bar-mode 0)
+)
;; move custom-file
(setq custom-file "~/.emacs.d/lisp.d/01-custom.el")