diff options
author | Aaron LI <aly@aaronly.me> | 2018-03-08 22:42:55 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-08 22:42:55 +0800 |
commit | e079436b4b8477efc2d2cb625f855669b6ddb571 (patch) | |
tree | 5264b6b62ae89876fbc7a875febfcf498d161bef /_spacemacs.d | |
parent | 2d3a6d3cb7424b22689bfcac314c33863a73ea07 (diff) | |
download | dotfiles-e079436b4b8477efc2d2cb625f855669b6ddb571.tar.bz2 |
spacemacs/init: fix custom-file set; add yaml layer
Diffstat (limited to '_spacemacs.d')
-rw-r--r-- | _spacemacs.d/init.el | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/_spacemacs.d/init.el b/_spacemacs.d/init.el index 4fcc90e..bed225d 100644 --- a/_spacemacs.d/init.el +++ b/_spacemacs.d/init.el @@ -120,6 +120,7 @@ version-control-diff-tool 'diff-hl version-control-global-margin t) xkcd + yaml ;; Custom layers ) ;; List of additional packages that will be installed without being @@ -390,7 +391,7 @@ It is called immediately after `dotspacemacs/init'. You are free to put almost any user code here. The exception is org related code, which should be placed in `dotspacemacs/user-config'." - ;; + ;; Helm uses Tramp which tries to figure out some SSH/DNS settings at ;; startup. However, the ISP may redirect non-existing addresses to ;; their own servers, which causes long timeouts and blocks the startup. @@ -401,6 +402,12 @@ (concat "-o ControlPath='tramp.%%C' " "-o ControlMaster=auto " "-o ControlPersist=no")) + + ;; Set the customization file path; must be done here in `user-init'. + ;; See: https://github.com/syl20bnr/spacemacs/commit/6212795 + (setq custom-file "~/.spacemacs.d/custom.el") + + ;; END: `dotspacemacs/user-init' ) @@ -520,12 +527,11 @@ (require 'my-org) (require 'my-mu4e) (require 'my-calendar) - ;; - ;; Set custom file location instead of using this file - (setq custom-file "~/.spacemacs.d/custom.el") + + ;; Load customization file (if (file-readable-p custom-file) (load-file custom-file)) - ;; + ;; END: `dotspacemacs/user-config' ) |