diff .emacs @ 760:d0b975ffabdf

http://serverfault.com/questions/132055/how-to-check-if-emacs-is-in-gui-mode-and-execute-tool-bar-mode-only-then
author Jeff Hammel <k0scist@gmail.com>
date Tue, 15 Dec 2015 12:32:34 -0800
parents 8466deea2eaf
children 03f9657514e9
line wrap: on
line diff
--- a/.emacs	Wed Sep 16 15:09:19 2015 -0700
+++ b/.emacs	Tue Dec 15 12:32:34 2015 -0800
@@ -30,7 +30,9 @@
 (menu-bar-mode (if window-system 1 -1))
 
 ;; no need for a tool bar
-(if (boundp 'tool-bar-mode) (tool-bar-mode 0))
+;; http://serverfault.com/questions/132055/how-to-check-if-emacs-is-in-gui-mode-and-execute-tool-bar-mode-only-then
+(if window-system
+    (if (boundp 'tool-bar-mode) (tool-bar-mode 0)))
 
 ;; ...or a startup message
 ;; instead, it'd be nice to start with a list of recent files (recentf)