链氪巴士
  1. 首页
  2. 站点导航
  3. 文章
  4. 快讯
  5. 软件
  6. 书刊
  7. 关于

emacs-china/elpa-EmacsChinaELPA镜像项目

emacs - china/elpa是一个EmacsChinaELPA镜像项目,主要用于在官方存储库临时不可用时提供镜像服务。它给出了在GitHub、GitLab、本地以及在Spacemacs中的使用方法,方便用户在不同场景下使用Emacs包存档的镜像。这个项目由mirror -...

访问官网 →

项目标题:emacs-china/elpa-EmacsChinaELPA镜像项目

项目简介

emacs-china/elpa是一个EmacsChinaELPA镜像项目。它提供了镜像,用于一些Emacs包的存档。当官方的存储库临时不可用时可以使用这些镜像。该项目主要由mirror-elpa维护。

项目使用方法

GitHub使用

在init.el文件中设置package-archives,如下: (setq package-archives’((“melpa”. “https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/melpa/”)(“org”. “https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/org/”)(“gnu”. “https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/gnu/”)))

GitLab使用

在init.el文件中设置package-archives,如下: (setq package-archives’((“melpa”. “https://gitlab.com/d12frosted/elpa-mirror/raw/master/melpa/”)(“org”. “https://gitlab.com/d12frosted/elpa-mirror/raw/master/org/”)(“gnu”. “https://gitlab.com/d12frosted/elpa-mirror/raw/master/gnu/”)))

本地使用

首先克隆这个仓库:$git clone — [email protected]:d12frosted/elpa-mirror.git ~/.elpa-mirror。然后在init.el文件中设置package-archives,如下: (setq package-archives`((“melpa”.,(concat user-home-directory”.elpa-mirror/melpa/”))(“org”.,(concat user-home-directory”.elpa-mirror/org/”))(“gnu”.,(concat user-home-directory”.elpa-mirror/gnu/”))))

在Spacemacs中的使用

要在Spacemacs中使用elpa-mirror,需要修改configuration-layer-elpa-archives。在dotspacemacs/init函数中添加如下代码: ;;remote (setq configuration-layer-elpa-archives’((“melpa”. “https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/melpa/”)(“org”. “https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/org/”)(“gnu”. “https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/gnu/”))) ;;local (setq configuration-layer-elpa-archives`((“melpa”.,(concat user-home-directory”.elpa-mirror/melpa/”))(“org”.,(concat user-home-directory”.elpa-mirror/org/”))(“gnu”.,(concat user-home-directory”.elpa-mirror/gnu/”))))

项目总结

emacs-china/elpa这个项目为Emacs包存档提供了镜像方案,在官方存储库临时不可用时可以起到替代作用,并且给出了多种使用场景下的使用方法。希望大家对这个项目有任何想法或者问题都可以在下方留言讨论。

项目地址

GitHub链接直达