From 9dc6c5f8e04d119a49600068dea52cd9bbc5b868 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 22 Jun 2012 13:46:47 +0900 Subject: [PATCH] dont call undefined function --- emacs.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index f6f7a7f..5112c5d 100644 --- a/emacs.el +++ b/emacs.el @@ -131,8 +131,10 @@ Return nil if library unfound and failed to download, otherwise the path where t ) ;; (add-to-list 'default-frame-alist '(cursor-type . box)) (if window-system (menu-bar-mode 1) (menu-bar-mode 0)) -(tool-bar-mode 0) -(set-scroll-bar-mode nil) +(and (fboundp 'tool-bar-mode) +(tool-bar-mode 0)) +(and (fboundp 'set-scroll-bar-mode) +(set-scroll-bar-mode nil)) (add-hook 'kill-emacs-hook ; load when exitting to examine if file is written properly (lambda () (when (file-readable-p "~/.emacs")