Created
July 28, 2012 12:53
-
-
Save aristidb/3193230 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ELPA | |
(require 'package) | |
(package-initialize) | |
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) | |
(defvar preload-packages '()) | |
(setq preload-packages | |
'( | |
auctex | |
ess | |
magit | |
;mark-more-like-this ;in MELPA this is part of mark-multiple | |
mark-multiple | |
gh | |
gist | |
smex | |
js2-mode | |
unbound | |
markdown-mode | |
ace-jump-mode | |
haskell-mode | |
)) | |
(defun preload-packages-installed-p () | |
(loop for p in preload-packages | |
when (not (package-installed-p p)) do (return nil) | |
finally (return t))) | |
(unless (preload-packages-installed-p) | |
(message "%s" "Refreshing package database...") | |
(package-refresh-contents) | |
(message "%s" " done.") | |
(loop for p in preload-packages | |
when (not (package-installed-p p)) do (package-install p))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment