summarylogtreecommitdiffstats
path: root/emacs-flycheck-clojure.install
blob: e39abd4beb5294633d497516d83cf5b813b5e61d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
post_install () {

cat << EOF

==> Add this code to your .emacs file to use the checker:

(require 'flycheck-clojure)
(flycheck-clojure-setup)

(add-hook 'clojure-mode-hook
          (lambda ()
            (eval-after-load 'flycheck
              '(flycheck-clojure-setup))))

==> Or do the above with use-package:

(use-package flycheck-clojure
  :commands (flycheck-clojure-setup)
  :init
  (add-hook 'clojure-mode-hook
	    (lambda ()
	      (eval-after-load 'flycheck
		'(flycheck-clojure-setup)))))

EOF
}

post_upgrade () {
	post_install $1
}