Created
June 1, 2013 09:30
-
-
Save nicferrier/5689802 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
(defun my-package-complete () | |
(require 'package) | |
(customize-set-variable | |
'package-archives | |
'(("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "http://marmalade-repo.org/packages/") | |
("melpa" . "http://melpa.milkbox.net/packages/") | |
)) | |
(customize-save-customized) | |
(defvar my-packages '(deft erc key-chord magit | |
minimap org org-blog sauron | |
smartparens smex zenburn-theme)) | |
(dolist (p my-packages) | |
(when (not (package-installed-p p)) (package-install p)))) | |
(add-hook 'after-init-hook 'my-package-complete) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment