How to install MELPA packages through El-Get?

The El-Get documentation says that El-Get support is package.el and the MELPA documentation shows how to use MELPA with package.el . How do I install MELPA packages using El-Get?

Unsuccessful attempt

I use Emacs 23, so package.el not included with Emacs. I installed package.el using El-Get, but I'm not sure how to make El-Learn about MELPA. I tried adding

 ;; Based on http://melpa.milkbox.net/#/getting-started . (require 'package) (add-to-list 'package-archives ;; The 't' means to append, so that MELPA comes after the more ;; stable ELPA archive. '("melpa" . "http://melpa.milkbox.net/packages/") t) ;; Add ELPA if necessary. Looking at the El-Get package.rcp recipe in ;; ~/local/opt/el-get/recipes it seems this is probably unnecessary. (when (< emacs-major-version 24) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))) (package-initialize) 

to my init-package.el , which is received by El-Get, but I still do not see MELPA packages in El-Get (for example, with Mx el-get-list-packages ).

Update

I added

 (require 'el-get-elpa) ;; Build the El-Get copy of the package.el packages if we have not ;; built it before. Will have to look into updating later ... (unless (file-directory-p el-get-recipe-path-elpa) (el-get-elpa-build-local-recipes)) 

to my init-package.el , as suggested in the accepted answer, and now everything works.

+7
emacs melpa
source share
1 answer

Try the following:

 (require 'el-get-elpa) 

and then call Mx el-get-elpa-build-local-recipes : it creates a special ../recipes/elpa directory with recipes from elpa, and el-get sees new recipes.

+9
source share

All Articles