Permalink
Browse files

Don't try to load custom file if it doesn't exist (fixes #65)

  • Loading branch information...
1 parent 0dadafc commit 37bb66565f87a93eda2c1579c9fcc179fe886487 @purcell committed Mar 3, 2013
Showing with 3 additions and 1 deletion.
  1. +1 −0 init-elpa.el
  2. +2 −1 init.el
View
@@ -97,6 +97,7 @@ ARCHIVE is the string name of the package archive.")
(package-initialize)
(require-package 'ido-ubiquitous)
+(require-package 'ido-complete-space-or-hyphen)
(when (< emacs-major-version 24)
(require-package 'color-theme))
(require-package 'auto-compile)
View
@@ -88,7 +88,8 @@
;; Variables configured via the interactive 'customize' interface
;;----------------------------------------------------------------------------
(setq custom-file "~/.emacs.d/custom.el")
-(load custom-file)
+(when (file-exists-p custom-file)
+ (load custom-file))
;;----------------------------------------------------------------------------

0 comments on commit 37bb665

Please sign in to comment.