Need help with elpa?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

emacs-china
133 Stars 13 Forks GNU General Public License v3.0 116 Commits 3 Opened issues

Description

Emacs China ELPA 镜像

Services available

!
?

Need anything else?

Contributors list

+OPTIONS: title:nil

+OPTIONS: num:nil

+OPTIONS: toc:nil

+OPTIONS: html-style:nil

+OPTIONS: html-scripts:nil

+OPTIONS: html-preamble:nil

+OPTIONS: html-postamble:nil

+TITLE: ELPA 镜像 - Emacs China

+AUTHOR: Emacs China

+HTML_HEAD:

+HTML_HEAD:

+HTML_HEAD:

+HTML_HEAD:

+HTML_HEAD:

+BEGIN_EXPORT html

ELPA 镜像

+END_EXPORT

[[https://elpa.emacs-china.org/downloads][file:https://elpa.emacs-china.org/downloads-badge.svg]] [[https://travis-ci.org/emacs-china/elpa/][file:https://elpa.emacs-china.org/last-update.svg]]

| ELPA | 镜像地址 | |------------------------+------------------------------------------------| | [[http://elpa.gnu.org/][GNU ELPA]] | http://elpa.emacs-china.org/gnu/ | | [[https://melpa.org/][MELPA]] | http://elpa.emacs-china.org/melpa/ | | [[http://stable.melpa.org/#/][MELPA Stable]] | http://elpa.emacs-china.org/melpa-stable/ | | [[Https://marmalade-repo.org/][Marmalade]] | http://elpa.emacs-china.org/marmalade/ | | [[http://orgmode.org/elpa.html][Org]] | http://elpa.emacs-china.org/org/ | | [[https://www.emacswiki.org/emacs/Sunrise_Commander][Sunrise Commander ELPA]] | http://elpa.emacs-china.org/sunrise-commander/ | | [[http://user42.tuxfamily.org/elpa/index.html][user42 ELPA]] | http://elpa.emacs-china.org/user42/ |

如果需要 HTTPS,请将镜像地址中的 ~http~ 改成 ~https~ 。

TUNA 与 SJTUG 提供与本站一致的镜像服务。如果需要使用,可以将上述地址中的 ~http://elpa.emacs-china.org/~ 替换为:

  • TUNA: ~https://mirrors.tuna.tsinghua.edu.cn/elpa/~
  • SJTUG: ~https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/~

** 使用方法

根据你的需求,设置 ~package-archives~ ,比如用 GNU ELPA 和 MELPA:

+BEGIN_SRC emacs-lisp

(setq package-archives '(("gnu" . "http://elpa.emacs-china.org/gnu/") ("melpa" . "http://elpa.emacs-china.org/melpa/")))

+END_SRC

*** Spacemacs 用户

添加下面的代码到 ~.spacemacs~ 的 ~dotspacemacs/user-init()~

+BEGIN_SRC emacs-lisp

(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/")))

+END_SRC

**** develop 分支

使用 ~configuration-layer-elpa-archives~ 代替原来的 ~configuration-layer--elpa-archives~ ( ~--~ 换成 ~-~ )

+BEGIN_SRC emacs-lisp

(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/")))

+END_SRC

*** Cask 用户

[[https://github.com/cask/cask][Cask]] 是一个 Emacs Lisp 的项目管理工具。这里还是以 GNU ELPA 和 MELPA 为例,在添加下面的代码到 ~Cask~

+BEGIN_SRC emacs-lisp

(source "gnu" "http://elpa.emacs-china.org/gnu/") (source "melpa" "http://elpa.emacs-china.org/melpa/")

+END_SRC

** 镜像说明

对于上游提供了 Rsync 服务的 ELPA,通过 Rsync 方式同步,同步间隔为 4 小时。对于没有提供 Rsync 服务的 ELPA,通过 HTTP 方式同步,同步间隔为 8 小时。

** 用 Rsync 同步本镜像

整个镜像约占 1 GB,地址为:

+BEGIN_SRC undefined

rsync://elpa.emacs-china.org/elpa/

+END_SRC

下游 Tsinghua Mirrors 的 [[https://mirrors.tuna.tsinghua.edu.cn/help/elpa/][ELPA 镜像]] 也提供了 Rsync 服务,地址是:

+BEGIN_SRC undefined

rsync://mirrors.tuna.tsinghua.edu.cn/elpa/

+END_SRC

上游 [[https://github.com/emacs-china/elpa/issues/30][GNU ELPA]] 和 [[https://github.com/melpa/melpa/issues/4020][MELPA]] 提供了 Rsync 服务,其地址分别为:

+BEGIN_SRC undefined

rsync://elpa.gnu.org/elpa/ rsync://melpa.org/packages/

+END_SRC

** [[https://elpa.emacs-china.org/packages/][ELPA Packages]]

你可以访问 [[https://elpa.emacs-china.org/packages/][ELPA Packages]] 来查看目前镜像上提供的所有的包。

** News

  • 2017/01/16 VPS 带宽从 1 Mbps 升级至 2 Mbps
  • 2016/12/02 域名更改为 ~elpa.emacs-china.org~ 。原来使用的 ~elpa.zilongshanren.com~ 的 HTTP、HTTPS 和 Rsync 仍照常工作
  • 2016/11/25 添加 Sunrise Commander ELPA 和 user42 ELPA

** 报告问题

https://github.com/emacs-china/elpa/issues

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.