From: Michael Orlitzky Date: Mon, 4 Jan 2010 13:45:17 +0000 (-0500) Subject: Only set tool/scrollbar modes when we're using X. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=83f0c9d6b7078bc444ef02cb043f1be68399bbee;p=emacs.d.git Only set tool/scrollbar modes when we're using X. --- 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.