core: use an advice to write custom settings to dotfile

Should fix #7816
This commit is contained in:
syl20bnr 2016-11-23 16:32:10 -05:00
parent e699f1816a
commit 6ae2fbcfa9
2 changed files with 2 additions and 1 deletions

View File

@ -92,4 +92,6 @@ This function is called at the very end of Spacemacs initialization.\"\n")
(save-buffer)
(kill-buffer (current-buffer)))))
(advice-add 'custom-save-all :after #'spacemacs/write-custom-settings-to-dotfile)
(provide 'core-custom-settings)

View File

@ -78,7 +78,6 @@ the final step of executing code in `emacs-startup-hook'.")
;; overlapped in terminal mode. The GUI specific `<C-i>' is used
;; instead.
evil-want-C-i-jump nil)
(spacemacs/write-custom-settings-to-dotfile)
(dotspacemacs/load-file)
(require 'core-configuration-layer)
(dotspacemacs|call-func dotspacemacs/init "Calling dotfile init...")