emacs-elpa

August 14, 2020
skyzh
mirror-help

emacs-elpa 包含了 GNU ELPA, NonGNU ELPA, MELPA, MELPA Stable, Org 这 5 个镜像。

ELPA 镜像地址
GNU ELPA https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/gnu/
NonGNU ELPA https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/nongnu/
MELPA https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/melpa/
MELPA Stable https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/stable-melpa/
Org https://mirrors.sjtug.sjtu.edu.cn/emacs-elpa/org/

使用方法

根据你的需求,设置 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 镜像。