Permalink
Browse files

Merge pull request #18 from hdhoang/master

Load custom-file before loading modules
  • Loading branch information...
2 parents 89d0b71 + 3838eed commit d1ff11da15435fe0f7a84fd1ee9d7ed46bcf55d5 @bbatsov committed Oct 28, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 init.el
View
@@ -59,6 +59,10 @@ by Prelude.")
(add-to-list 'load-path prelude-vendor-dir)
(add-to-list 'load-path prelude-personal-dir)
+;; config changes made through the customize UI will be store here
+(setq custom-file (concat prelude-personal-dir "custom.el"))
+(load custom-file 'noerror)
+
;; the core stuff
(require 'prelude-ui)
(require 'prelude-packages)
@@ -81,8 +85,6 @@ by Prelude.")
(require 'prelude-scheme)
(require 'prelude-xml)
-;; config changes made through the customize UI will be store here
-(setq custom-file (concat prelude-personal-dir "custom.el"))
;; load the personal settings
(when (file-exists-p prelude-personal-dir)
(mapc 'load (directory-files prelude-personal-dir nil "^[^#].*el$")))

0 comments on commit d1ff11d

Please sign in to comment.