Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Automatically install missing packages with package.el
;; ~/.emacs.d/package.el from
(expand-file-name "~/.emacs.d/elpa/package.el"))
(setq package-archives '(("ELPA" . "")
("gnu" . "")
("marmalade" . "")))
(setq mypackages '(clojure-mode slime slime-repl magit auctex))
;; Make sure that all packages from mypackages are installed
(dolist (p mypackages)
(when (not (assoc p package-alist))
(package-install p)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.