Mercurial > hg > config
comparison .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 |
comparison
equal
deleted
inserted
replaced
759:f632a9850bb8 | 760:d0b975ffabdf |
---|---|
28 | 28 |
29 ;; Turn off the status bar and on the mouse if we're not in a window system | 29 ;; Turn off the status bar and on the mouse if we're not in a window system |
30 (menu-bar-mode (if window-system 1 -1)) | 30 (menu-bar-mode (if window-system 1 -1)) |
31 | 31 |
32 ;; no need for a tool bar | 32 ;; no need for a tool bar |
33 (if (boundp 'tool-bar-mode) (tool-bar-mode 0)) | 33 ;; http://serverfault.com/questions/132055/how-to-check-if-emacs-is-in-gui-mode-and-execute-tool-bar-mode-only-then |
34 (if window-system | |
35 (if (boundp 'tool-bar-mode) (tool-bar-mode 0))) | |
34 | 36 |
35 ;; ...or a startup message | 37 ;; ...or a startup message |
36 ;; instead, it'd be nice to start with a list of recent files (recentf) | 38 ;; instead, it'd be nice to start with a list of recent files (recentf) |
37 (setq inhibit-startup-message t) | 39 (setq inhibit-startup-message t) |
38 | 40 |