view .elisp/settings/00.bootstrap.el @ 215:ca0e1cff654c

Add an applescript I use to archive messages in Mail.app
author Augie Fackler <durin42@gmail.com>
date Sat, 14 Aug 2010 20:42:58 -0500
parents 2a4efba0fe8b
children bb74667967e1
line wrap: on
line source

(add-to-list 'load-path (expand-file-name "~/.elisp"))
(load "package")
(package-initialize)

(setq package-archives '(("durin42" . "http://home.durin42.com/elpa/")
                         ("elpa" . "http://tromey.com/elpa/")))

(defun af-bootstrap-packages ()
  (interactive)
  (unless package-archive-contents (package-refresh-contents))
  (dolist (pack '(diff-mode-
                  doctest-mode
                  http-twiddle
                  ipython
                  nose
                  ;; disabled until I don't need a modified version
                  ;; textmate
                  iedit
                  ;; from elpa
                  js2-mode
                  paredit
                  yaml-mode))
    (unless (or (member pack package-activated-list)
                (functionp pack))
      (message "Installing %s" (symbol-name pack))
      (package-install pack))))