Mercurial > dotfiles
annotate .elisp/settings/00.bootstrap.el @ 254:b14e669b98bf
vcs_current_branch: use 'hg parents --template' instead of just 'hg parents'
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 05 May 2011 11:00:37 -0500 |
parents | e703696d4df5 |
children | 46979cef73b6 |
rev | line source |
---|---|
219
bb74667967e1
emacs bootstrap: record setup command for sanity
Augie Fackler <durin42@gmail.com>
parents:
214
diff
changeset
|
1 ;; emacs -l .elisp/settings/00.bootstrap.el --batch -f af-bootstrap-packages |
bb74667967e1
emacs bootstrap: record setup command for sanity
Augie Fackler <durin42@gmail.com>
parents:
214
diff
changeset
|
2 ;; Use the above for moving into a new machine |
214
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
3 (add-to-list 'load-path (expand-file-name "~/.elisp")) |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
4 (load "package") |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
5 (package-initialize) |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
6 |
248
e703696d4df5
emacs bootstrap: moved my personal elpa archive
Augie Fackler <durin42@gmail.com>
parents:
236
diff
changeset
|
7 (setq package-archives '(("durin42" . "http://durin42.com/elpa/") |
214
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
8 ("elpa" . "http://tromey.com/elpa/"))) |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
9 |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
10 (defun af-bootstrap-packages () |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
11 (interactive) |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
12 (unless package-archive-contents (package-refresh-contents)) |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
13 (dolist (pack '(diff-mode- |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
14 doctest-mode |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
15 http-twiddle |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
16 ipython |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
17 nose |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
18 ;; disabled until I don't need a modified version |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
19 ;; textmate |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
20 iedit |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
21 ;; from elpa |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
22 js2-mode |
220 | 23 magit |
214
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
24 paredit |
236
3e1ec121efaf
emacs: use smex as a replacement for execute-extended-command
Augie Fackler <durin42@gmail.com>
parents:
220
diff
changeset
|
25 smex |
214
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
26 yaml-mode)) |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
27 (unless (or (member pack package-activated-list) |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
28 (functionp pack)) |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
29 (message "Installing %s" (symbol-name pack)) |
2a4efba0fe8b
emacs: move package bootstrap to its own file
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
30 (package-install pack)))) |