aboutsummaryrefslogtreecommitdiff
path: root/lang/clojure-mode.el/pkg-message
blob: b3674c99336ed6ba0c1c737c16239e92ce706b4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[
{ type: install
  message: <<EOM
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)))
EOM
}
]