comparison .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
comparison
equal deleted inserted replaced
213:1947b2c08f29 214:2a4efba0fe8b
1 (add-to-list 'load-path (expand-file-name "~/.elisp"))
2 (load "package")
3 (package-initialize)
4
5 (setq package-archives '(("durin42" . "http://home.durin42.com/elpa/")
6 ("elpa" . "http://tromey.com/elpa/")))
7
8 (defun af-bootstrap-packages ()
9 (interactive)
10 (unless package-archive-contents (package-refresh-contents))
11 (dolist (pack '(diff-mode-
12 doctest-mode
13 http-twiddle
14 ipython
15 nose
16 ;; disabled until I don't need a modified version
17 ;; textmate
18 iedit
19 ;; from elpa
20 js2-mode
21 paredit
22 yaml-mode))
23 (unless (or (member pack package-activated-list)
24 (functionp pack))
25 (message "Installing %s" (symbol-name pack))
26 (package-install pack))))