From f51ae0cc6b75a783e8009b208538bda4327d0391 Mon Sep 17 00:00:00 2001 From: Mathieu Braem Date: Wed, 23 Nov 2011 11:13:32 +0100 Subject: [PATCH] tool-bar-mode does not properly work in a tty --- modules/prelude-ui.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/prelude-ui.el b/modules/prelude-ui.el index 0c43d69..2db356a 100644 --- a/modules/prelude-ui.el +++ b/modules/prelude-ui.el @@ -39,7 +39,7 @@ :group 'prelude) (defcustom prelude-use-minimalistic-ui t - "If set to true Prelude will dispense of most the UI that's mouse related - + "If set to true Prelude will dispense of most the UI that's mouse related - menu bar, tool bar, etc" :type 'boolean :group 'ui) @@ -63,7 +63,10 @@ instead of Emacs's default theme." (when prelude-use-minimalistic-ui ;; the toolbar is just a waste of valuable screen estate - (tool-bar-mode -1) + ;; in a tty tool-bar-mode does not properly auto-load, and is + ;; already disabled anyway + (when (fboundp 'tool-bar-mode) + (tool-bar-mode -1)) ;; the menu bar is mostly useless as well ;; but removing it under OS X doesn't make much sense (unless (eq system-type 'darwin)