From 6254bbc17b54f8fffe80d758c3d57ca83d67f12e Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sun, 19 Feb 2017 17:56:46 +0800 Subject: [PATCH] emacs - fix issue on termianl, check the graphic mode. --- emacs.d/config.org | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index 25136a4..7460b77 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -31,12 +31,15 @@ Set system PATH and emacs exec path ** General Setting *** scroll bar, tool-bar and menu-bar #+BEGIN_SRC emacs-lisp :tangle yes :results silent - (scroll-bar-mode 0) - (tool-bar-mode 0) + (if (display-graphic-p) + (progn + (scroll-bar-mode 0) + (tool-bar-mode 0) + (menu-bar-mode 1))) - (if window-system - (menu-bar-mode 1) - (menu-bar-mode 0)) + ;; (if window-system + ;; (menu-bar-mode 1) + ;; (menu-bar-mode 0)) (setq debug-on-error t) (setq inhibit-startup-message t) -- 2.11.0