core: Fix issue with custom settings and lazy loading

Fixes #9736
This commit is contained in:
syl20bnr 2017-10-29 10:39:48 -04:00
parent 65d5e42b8e
commit cc73871cb4

View file

@ -99,8 +99,12 @@ the final step of executing code in `emacs-startup-hook'.")
;; Note: Loading custom-settings twice is not ideal since they can have side
;; effects! Maybe an inhibit variable in Emacs can supress these side effects?
(spacemacs/initialize-custom-file)
(dotspacemacs|call-func dotspacemacs/emacs-custom-settings
"Calling dotfile Emacs custom settings...")
;; Commenting the first load although it is mentioned above that we must do it
;; I don't recall why we must load the custom settings twice and my experiment
;; seems to show that we don't need this double loading process anymore.
;; related issue: https://github.com/syl20bnr/spacemacs/issues/9736
;; (dotspacemacs|call-func dotspacemacs/emacs-custom-settings
;; "Calling dotfile Emacs custom settings...")
(setq dotspacemacs-editing-style (dotspacemacs//read-editing-style-config
dotspacemacs-editing-style))
(configuration-layer/initialize)