From 83f0c9d6b7078bc444ef02cb043f1be68399bbee Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 4 Jan 2010 08:45:17 -0500 Subject: [PATCH] Only set tool/scrollbar modes when we're using X. --- .emacs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.emacs b/.emacs index e1c5691..87d2eb9 100644 --- a/.emacs +++ b/.emacs @@ -7,12 +7,14 @@ ;; Set the frame title to the name of the buffer, if supported. (setq frame-title-format "%b") -;; Disable the menu/tool bars +;; Disable the menu/tool bars when we're using X. (menu-bar-mode -1) -(tool-bar-mode -1) +(when window-system + (tool-bar-mode -1)) ;; And put the damned scroll bar on the correct side. -(set-scroll-bar-mode 'right) +(when window-system + (set-scroll-bar-mode 'right)) ;; The most important statement in this file. ;; Do not display a splash screen on startup. -- 2.43.2