comparison .elisp/settings/10.require.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 8980dc2deda0
children a01712792c2b
comparison
equal deleted inserted replaced
213:1947b2c08f29 214:2a4efba0fe8b
1 ;; Better buffer switching and file loading (load first in case we need the 1 ;; Better buffer switching and file loading (load first in case we need the
2 ;; * Messages * buffer) 2 ;; * Messages * buffer)
3 (require 'ido) 3 (require 'ido)
4 (setq ido-enable-flex-matching t) 4 (setq ido-enable-flex-matching t)
5 (ido-mode t) 5 (ido-mode t)
6
7 (load "package")
8 (package-initialize)
9
10 (setq package-archives '(("durin42" . "http://home.durin42.com/elpa/")
11 ("elpa" . "http://tromey.com/elpa/")))
12
13 (defun af-bootstrap-packages ()
14 (interactive)
15 (unless package-archive-contents (package-refresh-contents))
16 (dolist (pack '(diff-mode-
17 doctest-mode
18 http-twiddle
19 ipython
20 nose
21 ;; disabled until I don't need a modified version
22 ;; textmate
23 iedit
24 ;; from elpa
25 js2-mode
26 paredit
27 yaml-mode))
28 (unless (or (member pack package-activated-list)
29 (functionp pack))
30 (message "Installing %s" (symbol-name pack))
31 (package-install pack))))
32 6
33 (require 'python-mode) 7 (require 'python-mode)
34 (require 'ipython) 8 (require 'ipython)
35 (require 'show-wspace) 9 (require 'show-wspace)
36 (require 'mercurial) 10 (require 'mercurial)