根据你的需求,设置 package-archives
,比如用 GNU ELPA 和 MELPA:
(setq package-archives '(("gnu" . "http://elpa.zilongshanren.com/gnu/")
("melpa" . "http://elpa.zilongshanren.com/melpa/")))
添加下面的代码到 .spacemacs
的 dotspacemacs/user-init()
(setq configuration-layer--elpa-archives
'(("melpa-cn" . "http://elpa.zilongshanren.com/melpa/")
("org-cn" . "http://elpa.zilongshanren.com/org/")
("gnu-cn" . "http://elpa.zilongshanren.com/gnu/")))
Cask 是一个 Emacs Lisp 的项目管理工具。这里还是以 GNU ELPA 和 MELPA 为例,在添加下面的代码到 Cask
(source "gnu" "http://elpa.zilongshanren.com/gnu/")
(source "melpa" "http://elpa.zilongshanren.com/melpa/")
每八小时更新一次。
支持 HTTPS,只需要把 elpa.zilongshanren.com
的 http 前缀修改成 https 即可。
由于 emacs-china.org
没有备案,我们用了子龙山人提供的子域名。即使将来
emacs-china.org
备案了, elpa.zilongshanren.com
也会继续工作。
上游 GNU ELPA 和 MELPA 提供了 Rsync 服务,其地址分别为:
rsync://elpa.gnu.org/elpa/ rsync://melpa.org/packages/
而对于没有提供 Rsync 服务的 ELPA,你可以考虑使用 Emacs China 提供的 Rsync 服务,其地址分别为:
rsync://elpa.zilongshanren.com/elpa/melpa-stable/ rsync://elpa.zilongshanren.com/elpa/marmalade/ rsync://elpa.zilongshanren.com/elpa/org/
你也可以直接从 Emacs China 同步所有的 ELPA,约占 2 G,其地址为:
rsync://elpa.zilongshanren.com/elpa/
https://github.com/emacs-china/elpa/issues
@zilongshanren 提供域名和 VPS
Travis CI 同步的工作在它上面完成,使得我们不用购买一台国外的 VPS