(defun dotspacemacs/user-init ()
"Initialization function for user code.
It is called immediately after `dotspacemacs/init', before layer configuration
executes.
This function is mostly useful for variables that need to be set
before packages are loaded. If you are unsure, you should try in setting them in
`dotspacemacs/user-config' first."
(setq configuration-layer--elpa-archives
'(("melpa-cn" . "http://elpa.emacs-china.org/melpa/")
("org-cn" . "http://elpa.emacs-china.org/org/")
("gnu-cn" . "http://elpa.emacs-china.org/gnu/")))
)
新拉取的spacemacs, 在user-init里设置源
第一次打开emacs使用的是emacs-china源 但是之后打开emacs添加layers连接的就是elpa.gnu.org了 删除 ~/.emacs.d/.cache ~/.emacs.d/elpa之后, 再次打开emacs才会使用emacs-china安装好layers. 这是我使用方式不对还是有bug啊?