emacs-elpa

August 14, 2020
skyzh
mirror-help

emacs-elpa 包含了 GNU ELPA, MELPA, MELPA Stable, Marmalade, Org, Sunrise Commander ELPA, user42 ELPA 这 7 个镜像。

ELPA 镜像地址
GNU ELPA https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/
MELPA https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/
MELPA Stable https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa-stable/
Marmalade https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/marmalade/
Org https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/org/
Sunrise Commander ELPA https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/sunrise-commander/
user42 ELPA https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/user42/

使用方法

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

(setq package-archives '(("gnu" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/")
                         ("melpa" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/")))

Spacemacs 用户

master 分支

添加下面的代码到 .spacemacsdotspacemacs/user-init()

(setq configuration-layer--elpa-archives
    '(("melpa-cn" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/")
      ("org-cn"   . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/org/")
      ("gnu-cn"   . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/")))

develop 分支

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

(setq configuration-layer-elpa-archives
    '(("melpa-cn" . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/")
      ("org-cn"   . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/org/")
      ("gnu-cn"   . "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/")))

Cask 用户

Cask 是一个 Emacs Lisp 的项目管理工具。这里还是以 GNU ELPA 和 MELPA 为例,在添加下面的代码到 Cask

(source "gnu"   "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/")
(source "melpa" "https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/")

本镜像上游为 https://elpa.emacs-china.org

SJTUG 不提供 rsync 镜像。

comments powered by Disqus