Mercurial > dotfiles
diff .elisp/clojure-paredit.el @ 7:9541f7e47514
Some edits to .emacs after my playing with Clojure, also added Clojure support files.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 30 Nov 2008 20:50:18 -0600 |
parents | |
children |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/.elisp/clojure-paredit.el @@ -0,0 +1,13 @@ +(require 'clojure-auto) + +(autoload 'paredit-mode "paredit" "Parenthesis editing minor mode" t) + +(eval-after-load "clojure-mode" + '(progn + (defun clojure-paredit-hook () (paredit-mode +1)) + (add-hook 'clojure-mode-hook 'clojure-paredit-hook) + + (define-key clojure-mode-map "{" 'paredit-open-brace) + (define-key clojure-mode-map "}" 'paredit-close-brace))) + +(provide 'clojure-paredit) \ No newline at end of file