Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check before calling tool-bar-mode and scroll-bar-mode.

  • Loading branch information...
commit 8bbcb926bdc386c2a6cf1385e72e8d0d9f0fd065 1 parent 628d4c5
@winfred-lu authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 winfred-visual.el
View
6 winfred-visual.el
@@ -6,8 +6,10 @@
;; Don't show the startup screen, menu bar, tool bar, and scroll bar
(setq inhibit-startup-message t)
(menu-bar-mode nil)
-(tool-bar-mode nil)
-(scroll-bar-mode nil)
+(if (functionp 'tool-bar-mode)
+ (tool-bar-mode nil))
+(if (functionp 'scroll-bar-mode)
+ (scroll-bar-mode nil))
;; Display line and column numbers
(setq line-number-mode t)
Please sign in to comment.
Something went wrong with that request. Please try again.