@@ -30,16 +30,53 @@ Read these warnings:
30
30
31
31
### Installation
32
32
33
- The package is available on [ Melpa] ( http://melpa.org/ ) :
33
+ ` flycheck-clojure ` of course requires ` cider ` and ` flycheck ` , which it should fetch as dependencdies
34
+ You can install from [ Melpa] ( http://melpa.org/ ) :
34
35
35
36
M-x package-install flycheck-clojure
37
+
38
+ but probably the easiest way to ensure proper loading and initializaiton order is via ` use-package ` .
39
+ With the following, simply invoking ` cider-jack-in ` will, after ` cider ` inititialization, but before actually
40
+ running, automatically invok
41
+ ` flycheck-clojure-setup ` , which will in turn inject plugin dependencies properly. If you're not careful,
42
+ ` cider ` can end up over-writing the ` cider-jack-in-dependencies ` with defaults.
43
+
44
+ ```
45
+ (use-package cider
46
+ :ensure t :defer t
47
+ :config
48
+ (setq
49
+ cider-repl-history-file ".cider-repl-history" ;; not squiggly-related, but I like it
50
+ nrepl-log-messages t) ;; not necessary, but useful for trouble-shooting
51
+ (flycheck-clojure-setup)) ;; run setup *after* cider load
52
+
53
+ (use-package flycheck-clojure
54
+ :defer t
55
+ :commands (flycheck-clojure-setup) ;; autoload
56
+ :config
57
+ (eval-after-load 'flycheck
58
+ '(setq flycheck-display-errors-function #'flycheck-pos-tip-error-messages))
59
+ (add-hook 'after-init-hook #'global-flycheck-mode))
60
+
61
+ (use-package flycheck :ensure t)
62
+ (use-package flycheck-pos-tip :ensure t
63
+ :after flycheck)
64
+ ```
65
+
66
+
67
+
36
68
37
69
Alternatively, (1) clone this project and put its ` elisp/flycheck-clojure/ ` directory
38
70
on your path, or (2) download
39
71
[ this one file] ( https://github.com/clojure-emacs/clojure-mode/blob/master/clojure-mode.el ) ,
40
- and install it wherever you like.
72
+ and install it wherever you like. You can still use ` use-package ` if you add
73
+ ```
74
+ :pin manual
75
+ :load-path "~/dev/squiggly-clojure/elisp/flycheck-clojure/" ;; or whereever
76
+ ```
77
+ to the ` (use-package flycheck-clojure ....) ` entry.
41
78
42
- Add to your ``` .emacs ``` :
79
+ If you're not using ` use-package ` , add to your ``` .emacs ``` :
43
80
44
81
~~~ .el
45
82
(eval-after-load 'flycheck '(flycheck-clojure-setup))
0 commit comments