Skip to content

Mirror for some Emacs package archives

Notifications You must be signed in to change notification settings

d12frosted/elpa-mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14,269 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sponsor

elpa-mirror

Mirrors for some Emacs package archives. These mirrors should be used only when official repository is temporarily down. Maintained using mirror-elpa.

Usage - GitHub

Just setup package-archives in your init.el file.

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

Usage - Local

First, you need to clone this repository.

$ git clone --depth 1 [email protected]:d12frosted/elpa-mirror.git ~/.elpa-mirror

And then setup package-archives in your init.el file.

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

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.

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

For 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.

Support

If you enjoy this project, you can support its development via GitHub Sponsors or Patreon.

About

Mirror for some Emacs package archives

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages