From 3a00e8c44319cae20f3af1ff3e7bc6d4d0655ad9 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Thu, 12 Oct 2017 20:55:58 +0200 Subject: [PATCH] emacs - No GUI in terminal --- emacs/.emacs.d/init.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 22b3a9b..377d73e 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -95,9 +95,10 @@ '(powerline-evil-replace-face ((t (:inherit powerline-evil-base-face :background "dark red"))))) ;; Disable unnecessary UI -(scroll-bar-mode -1) -(tool-bar-mode -1) -(menu-bar-mode -1) +(when window-system + (scroll-bar-mode -1) + (tool-bar-mode -1) + (menu-bar-mode -1)) ;; ensure repo cache is up1date (or (file-exists-p package-user-dir) @@ -254,6 +255,7 @@ (use-package company :ensure t :demand t + :delight :config (global-company-mode) (setq company-global-modes '(not git-commit-mode))