freebsd-ports/lang/clojure-mode.el/pkg-message
Tobias Kortkamp a67912335a lang/clojure-mode.el: Update to 5.6.1
PR:		221818
Submitted by:	harrigan-s@outlook.com (new maintainer)
2017-09-03 11:11:58 +00:00

16 lines
654 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))
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)))