comparison .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
comparison
equal deleted inserted replaced
210:0590f34b92a0 211:8980dc2deda0
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))))
6 32
7 (require 'python-mode) 33 (require 'python-mode)
8 (require 'ipython) 34 (require 'ipython)
9 (require 'show-wspace) 35 (require 'show-wspace)
10 (require 'mercurial) 36 (require 'mercurial)