view .elisp/clojure-paredit.el @ 74:fd369b708cbe

Better way of altering load-path, add support for local-to-machine emacs configs.
author Augie Fackler <durin42@gmail.com>
date Thu, 09 Apr 2009 13:27:19 -0500
parents 9541f7e47514
children
line wrap: on
line source

(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)