aboutsummaryrefslogtreecommitdiffstats
path: root/_spacemacs.d
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-08 22:42:55 +0800
committerAaron LI <aly@aaronly.me>2018-03-08 22:42:55 +0800
commite079436b4b8477efc2d2cb625f855669b6ddb571 (patch)
tree5264b6b62ae89876fbc7a875febfcf498d161bef /_spacemacs.d
parent2d3a6d3cb7424b22689bfcac314c33863a73ea07 (diff)
downloaddotfiles-e079436b4b8477efc2d2cb625f855669b6ddb571.tar.bz2
spacemacs/init: fix custom-file set; add yaml layer
Diffstat (limited to '_spacemacs.d')
-rw-r--r--_spacemacs.d/init.el16
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'
)