view .elisp/settings/10.require.el @ 213:1947b2c08f29

compilation: adjust regexp for hg tracebacks
author Augie Fackler <durin42@gmail.com>
date Tue, 04 May 2010 23:14:34 -0500
parents 8980dc2deda0
children 2a4efba0fe8b
line wrap: on
line source

;; Better buffer switching and file loading (load first in case we need the
;; * Messages * buffer)
(require 'ido)
(setq ido-enable-flex-matching t)
(ido-mode t)

(load "package")
(package-initialize)

(setq package-archives '(("durin42" . "http://home.durin42.com/elpa/")
                         ("elpa" . "http://tromey.com/elpa/")))

(defun af-bootstrap-packages ()
  (interactive)
  (unless package-archive-contents (package-refresh-contents))
  (dolist (pack '(diff-mode-
                  doctest-mode
                  http-twiddle
                  ipython
                  nose
                  ;; disabled until I don't need a modified version
                  ;; textmate
                  iedit
                  ;; from elpa
                  js2-mode
                  paredit
                  yaml-mode))
    (unless (or (member pack package-activated-list)
                (functionp pack))
      (message "Installing %s" (symbol-name pack))
      (package-install pack))))

(require 'python-mode)
(require 'ipython)
(require 'show-wspace)
(require 'mercurial)
(require 'diff-mode-)
(require 'midnight)

(require 'textmate)
(textmate-mode)
;; override what makes a project root
(setq *textmate-project-roots* '(".git" ".hg"))

(require 'yaml-mode)
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))

(require 'nose)
(require 'http-twiddle)