Skip to content

Instantly share code, notes, and snippets.

@nicferrier
Created June 1, 2013 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicferrier/5689802 to your computer and use it in GitHub Desktop.
Save nicferrier/5689802 to your computer and use it in GitHub Desktop.
(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