1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/lang/clojure-mode.el/pkg-message
Dmitry Marakasov e87a8bd319 - Fix trailing whitespace in pkg-messages
Approved by:	portmgr blanket
2016-05-19 11:09:14 +00:00

23 lines
881 B
Plaintext

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