Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emacs-china/elpa
Emacs China ELPA 镜像
https://github.com/emacs-china/elpa
elpa emacs emacs-packages
Last synced: 4 days ago
JSON representation
Emacs China ELPA 镜像
- Host: GitHub
- URL: https://github.com/emacs-china/elpa
- Owner: emacs-china
- Created: 2016-05-04T14:55:59.000Z (over 8 years ago)
- Default Branch: gh-pages
- Last Pushed: 2022-06-29T00:31:00.000Z (over 2 years ago)
- Last Synced: 2024-08-02T01:25:51.642Z (3 months ago)
- Topics: elpa, emacs, emacs-packages
- Language: CSS
- Homepage: https://elpamirror.emacs-china.org/
- Size: 1.2 MB
- Stars: 154
- Watchers: 17
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.org
- Contributing: CONTRIBUTING.org
Awesome Lists containing this project
README
* =elpa-mirror=
Mirrors for some Emacs package archives. These mirrors should be used only when
official repository is temporarily down. Maintained using [[https://github.com/d12frosted/mirror-elpa][mirror-elpa]].** Usage - GitHub
Just setup =package-archives= in your =init.el= file.
#+BEGIN_SRC emacs-lisp
(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/")))
#+END_SRC** Usage - GitLab
Just setup =package-archives= in your =init.el= file.
#+BEGIN_SRC emacs-lisp
(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/")))
#+END_SRC** Usage - Local
First, you need to clone this repository.
#+BEGIN_SRC bash
$ git clone --depth 1 [email protected]:d12frosted/elpa-mirror.git ~/.elpa-mirror
#+END_SRCAnd then setup =package-archives= in your =init.el= file.
#+BEGIN_SRC emacs-lisp
(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/"))))
#+END_SRC** Usage with Spacemacs
To use =elpa-mirror= with Spacemacs, you need to modify
=configuration-layer-elpa-archives=. To do so, just add following code to the
=dotspacemacs/init= function.#+BEGIN_SRC emacs-lisp
;; 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/"))))
#+END_SRCFor more grained control over =package-archives= (e. g. if you wish to use
mirror only when one of the official repositories is down) checkout how it's
implemented in Spacemacs.