freebsd-ports/lang/clojure-mode.el/pkg-message
Martin Wilke 94d99f1b25 - Update to 20090718
PR:		138952
Submitted by:	Peter Schuller <peter.schuller@infidyne.com> (maintainer)
Feature safe: yes
2009-09-18 23:36:15 +00:00

22 lines
883 B
Text

To use clojure-mode in Emacs, add the following lines to your ~/.emacs:
(autoload 'clojure-mode "clojure-mode" "A mode for clojure lisp" t)
(add-to-list 'auto-mode-alist '("\\.clj$" . clojure-mode))
And for clojure-test-mode:
(autoload 'clojure-test-mode "clojure-test-mode" "Clojure test mode" t)
(autoload 'clojure-test-maybe-enable "clojure-test-mode" "" t)
(add-hook 'clojure-mode-hook 'clojure-test-maybe-enable)
In addition, if you are also using paredit, you may wish to make it
more clojure aware:
(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)))