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:
parent
89d0b712b0
commit
3838eed22c
1 changed files with 4 additions and 2 deletions
6
init.el
6
init.el
|
@ -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$")))
|
||||
|
|
Loading…
Reference in a new issue