Skip to content

Instantly share code, notes, and snippets.

@diasjorge
Created October 31, 2011 09:54
Show Gist options
  • Save diasjorge/1327206 to your computer and use it in GitHub Desktop.
Save diasjorge/1327206 to your computer and use it in GitHub Desktop.
Bootstrapping el-get + packages
(setq el-get-sources
'((:name package-name)))
(defun sync-packages ()
"Synchronize packages"
(interactive)
(el-get 'sync '(el-get package))
(add-to-list 'package-archives '("tromey" . "http://tromey.com/elpa/"))
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
(setq my-packages (mapcar 'el-get-source-name el-get-sources))
(el-get 'sync my-packages))
(if (require 'el-get nil t)
(sync-packages)
(url-retrieve
"https://raw.github.com/dimitri/el-get/master/el-get-install.el"
(lambda (s)
(let (el-get-master-branch)
(end-of-buffer)
(eval-print-last-sexp)
(setq el-get-verbose t)
(sync-packages)))))
@priyadarshan
Copy link

This does not seem to work anymore (GNU Emacs 24.3.91.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2014-05-12 on bob.porkrind.org)

(error "El-get can not find a recipe for package \"package-name\"")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment