Skip to content
Browse files

[emacs] Conditionalized GUI specific configuration

tool-bar-mode and scroll-bar-mode are only available in GUI emacs
  • Loading branch information...
1 parent a7a7ee1 commit fba905d1583df236b426a73ed35a3475f126f2bc @kejistan committed Apr 29, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 emacsrc
View
9 emacsrc
@@ -13,9 +13,12 @@
(progn (message (format "Failed to load %s" ,filename)) (eval ,failure))))
;; Disable toolbars/menus/etc
-(tool-bar-mode 0)
-(scroll-bar-mode 0)
-(menu-bar-mode 0)
+(menu-bar-mode -1)
+;; tool-bar-mode and scroll-bar-mode are only available for gui emacs
+(if window-system
+ (progn
+ (tool-bar-mode -1)
+ (scroll-bar-mode -1)))
;; Start the emacs-server for quick startup when using emacsclient
(server-start)

0 comments on commit fba905d

Please sign in to comment.
Something went wrong with that request. Please try again.