load custom-file before loading modules

Otherwise customized prelude variables (e.g.
prelude-disable-arrow-navigation) will not have effect.
This commit is contained in:
Hoàng Đức Hiếu 2011-10-26 16:16:44 +07:00
parent 89d0b712b0
commit 3838eed22c

View file

@ -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$")))