From: Peng Li Date: Sun, 19 Feb 2017 09:56:46 +0000 (+0800) Subject: emacs - fix issue on termianl, check the graphic mode. X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=6254bbc17b54f8fffe80d758c3d57ca83d67f12e;p=dotfiles.git emacs - fix issue on termianl, check the graphic mode. --- 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)