diff .elisp/settings/00.bootstrap.el @ 214:2a4efba0fe8b

emacs: move package bootstrap to its own file
author Augie Fackler <durin42@gmail.com>
date Sat, 13 Feb 2010 20:00:15 -0600
parents
children bb74667967e1
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/.elisp/settings/00.bootstrap.el
@@ -0,0 +1,26 @@
+(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))))