Mercurial > hg > config
changeset 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 | f632a9850bb8 |
children | 9e4a21ca48af |
files | .emacs |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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)