From 3838eed22c87a36fcdfdd0fb3bc5defe882114e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ho=C3=A0ng=20=C4=90=E1=BB=A9c=20Hi=E1=BA=BFu?= Date: Wed, 26 Oct 2011 16:16:44 +0700 Subject: [PATCH] load custom-file before loading modules Otherwise customized prelude variables (e.g. prelude-disable-arrow-navigation) will not have effect. --- init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index ff3c0ad..a557aee 100644 --- a/init.el +++ b/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$")))