Mercurial > dotfiles
annotate .elisp/settings/10.require.el @ 211:8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 13 Feb 2010 20:00:15 -0600 |
parents | 616075bfadb5 |
children | 2a4efba0fe8b |
rev | line source |
---|---|
77 | 1 ;; Better buffer switching and file loading (load first in case we need the |
2 ;; * Messages * buffer) | |
3 (require 'ido) | |
4 (setq ido-enable-flex-matching t) | |
5 (ido-mode t) | |
6 | |
211
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
7 (load "package") |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
8 (package-initialize) |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
9 |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
10 (setq package-archives '(("durin42" . "http://home.durin42.com/elpa/") |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
11 ("elpa" . "http://tromey.com/elpa/"))) |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
12 |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
13 (defun af-bootstrap-packages () |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
14 (interactive) |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
15 (unless package-archive-contents (package-refresh-contents)) |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
16 (dolist (pack '(diff-mode- |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
17 doctest-mode |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
18 http-twiddle |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
19 ipython |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
20 nose |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
21 ;; disabled until I don't need a modified version |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
22 ;; textmate |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
23 iedit |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
24 ;; from elpa |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
25 js2-mode |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
26 paredit |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
27 yaml-mode)) |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
28 (unless (or (member pack package-activated-list) |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
29 (functionp pack)) |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
30 (message "Installing %s" (symbol-name pack)) |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
31 (package-install pack)))) |
8980dc2deda0
emacs: use package.el to bootstrap instead of checking in all needed libs
Augie Fackler <durin42@gmail.com>
parents:
150
diff
changeset
|
32 |
77 | 33 (require 'python-mode) |
34 (require 'ipython) | |
35 (require 'show-wspace) | |
36 (require 'mercurial) | |
37 (require 'diff-mode-) | |
38 (require 'midnight) | |
39 | |
40 (require 'textmate) | |
41 (textmate-mode) | |
150
616075bfadb5
textmate: override project root definitions
Augie Fackler <durin42@gmail.com>
parents:
144
diff
changeset
|
42 ;; override what makes a project root |
616075bfadb5
textmate: override project root definitions
Augie Fackler <durin42@gmail.com>
parents:
144
diff
changeset
|
43 (setq *textmate-project-roots* '(".git" ".hg")) |
77 | 44 |
45 (require 'yaml-mode) | |
46 (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) | |
47 | |
48 (require 'nose) | |
143
35eef880a5ac
emacs: add http-twiddle for POST debugging
Augie Fackler <durin42@gmail.com>
parents:
86
diff
changeset
|
49 (require 'http-twiddle) |