我将 Spacemacs 下的 elpa/ 目录下的已经下载下来的 Package 删除之后,Spacemacs 启动过程中会报很多奇怪的错误,最后定位发现是每次启动的时候都有部分 Package 没有正常下载下来,而且 Spacemacs 会报下面的错误:
Found 35 new package(s) to install… → refreshing package archive: gnu… [1/1] → installing package: ac-ispell@auto-completion… [1/35] Package ac-ispell is unavailable. Is the package name misspelled?y → installing package: ace-pinyin@chinese… [2/35] Package ace-pinyin is unavailable. Is the package name misspelled? → installing package: anaconda-mode@python… [3/35] Package anaconda-mode is unavailable. Is the package name misspelled? → installing package: auto-complete@auto-completion… [4/35] Package auto-complete is unavailable. Is the package name misspelled? → installing package: auto-yasnippet@auto-completion… [5/35] Package auto-yasnippet is unavailable. Is the package name misspelled? → installing package: chinese-pyim@chinese… [6/35] Package chinese-pyim is unavailable. Is the package name misspelled? → installing package: company-anaconda@python… [7/35] Package company-anaconda is unavailable. Is the package name misspelled? → installing package: cython-mode@python… [8/35] Package cython-mode is unavailable. Is the package name misspelled? → installing package: find-by-pinyin-dired@chinese… [9/35] Package find-by-pinyin-dired is unavailable. Is the package name misspelled? → installing package: fuzzy@auto-completion… [10/35] Package fuzzy is unavailable. Is the package name misspelled? → installing package: gh-md@markdown… [11/35] Package gh-md is unavailable. Is the package name misspelled? → installing package: gnuplot@org… [12/35] Package gnuplot is unavailable. Is the package name misspelled? → installing package: helm-c-yasnippet@auto-completion… [13/35] Package helm-c-yasnippet is unavailable. Is the package name misspelled? → installing package: helm-company@auto-completion… [14/35] Package helm-company is unavailable. Is the package name misspelled? → installing package: helm-pydoc@python… [15/35] Package helm-pydoc is unavailable. Is the package name misspelled? → installing package: htmlize@org… [16/35] Package htmlize is unavailable. Is the package name misspelled? → installing package: hy-mode@python… [17/35] Package hy-mode is unavailable. Is the package name misspelled? → installing package: live-py-mode@python… [18/35] Package live-py-mode is unavailable. Is the package name misspelled? → installing package: markdown-mode@markdown… [19/35] Package markdown-mode is unavailable. Is the package name misspelled? → installing package: markdown-toc@markdown… [20/35] Package markdown-toc is unavailable. Is the package name misspelled? → installing package: mmm-mode@markdown… [21/35] Package mmm-mode is unavailable. Is the package name misspelled? → installing package: mwim@better-defaults… [22/35] Package mwim is unavailable. Is the package name misspelled? → installing package: org-download@org… [23/35] Package org-download is unavailable. Is the package name misspelled? → installing package: org-pomodoro@org… [24/35] Package org-pomodoro is unavailable. Is the package name misspelled? → installing package: org-present@org… [25/35] Package org-present is unavailable. Is the package name misspelled? → installing package: org-projectile@org… [26/35] Package org-projectile is unavailable. Is the package name misspelled? → installing package: pangu-spacing@chinese… [27/35] Package pangu-spacing is unavailable. Is the package name misspelled? → installing package: pip-requirements@python… [28/35] Package pip-requirements is unavailable. Is the package name misspelled? → installing package: py-isort@python… [29/35] Package py-isort is unavailable. Is the package name misspelled? → installing package: pyenv-mode@python… [30/35] Package pyenv-mode is unavailable. Is the package name misspelled? → installing package: pytest@python… [31/35] Package pytest is unavailable. Is the package name misspelled? → installing package: pyvenv@python… [32/35] Package pyvenv is unavailable. Is the package name misspelled? → installing package: unfill@better-defaults… [33/35] Package unfill is unavailable. Is the package name misspelled? → installing package: yapfify@python… [34/35] Package yapfify is unavailable. Is the package name misspelled? → installing package: youdao-dictionary@chinese… [35/35] Package youdao-dictionary is unavailable. Is the package name misspelled?
而且我已经设置 emacs china 提供的 elpa 源:
(defun dotspacemacs/user-init () (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/”))) )