Skip to content

Instantly share code, notes, and snippets.

@paologlim
Created December 10, 2012 11:53
Show Gist options
  • Save paologlim/4250180 to your computer and use it in GitHub Desktop.
Save paologlim/4250180 to your computer and use it in GitHub Desktop.
Emacs config file
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
;; Add in your own as you wish:
(defvar my-packages '(starter-kit starter-kit-js starter-kit-ruby starter-kit-lisp starter-kit-bindings haml-mode yaml-mode markdown-mode)
"A list of packages to ensure are installed at launch.")
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment