To use HTTPS, please replace http
with https
.
Adjust package-archives
according to your own need, for example, to use GNU ELPA and MELPA:
(setq package-archives '(("gnu" . "http://elpa.emacs-china.org/gnu/")
("melpa" . "http://elpa.emacs-china.org/melpa/")))
Put this to dotspacemacs/user-init()
in the file .spacemacs
:
(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/")))
Replace configuration-layer--elpa-archives
with configuration-layer-elpa-archives
, that is change --
to -
.
(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/")))
Add the following to your Cask
:
(source "gnu" "http://elpa.emacs-china.org/gnu/")
(source "melpa" "http://elpa.emacs-china.org/melpa/")
We use rsync to update every 4 hours from upstreams for those who provide the service, such as GNU ELPA and MELPA; for the rest, we download all packages via HTTP to update every 8 hours.
Note that I understand that it’s not polite to download everything periodically, if you worry about this, please contact us via GitHub issue.
rsync://elpa.emacs-china.org/elpa/
Our downstream, Tsinghua Mirrors’ ELPA Mirror, also provides the Rsync service:
rsync://mirrors.tuna.tsinghua.edu.cn/elpa/
You can visit ELPA Packages to find out all packages on the mirror.
- 2017/01/16 Upgrade VPS bandwidth from 1 Mbps to 2 Mbps
- 2016/12/02 Use new domain
elpa.emacs-china.org
. The originalelpa.zilongshanren.com
will keep working. - 2016/11/25 Support Sunrise Commander ELPA and user42 ELPA