File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
kitchen-sink/trying-a-library-without-a-project Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,15 @@ You want to try a library in the REPL without having to create an unwanted proje
11
11
Use Ryan Neufeld's +lein-try+ to launch the REPL. Library dependencies will be met automatically.
12
12
13
13
To gain this capability, first make sure you are using Leiningen >= 2.1.3.
14
- Then edit your +~/.lein/profiles.clj+ file. Add the following to the +:plugins+ vector of the +:user+ profile:
14
+ Then edit your +~/.lein/profiles.clj+ file. Add +[lein-try "0.3.0"]+ to the +:plugins+ vector of the +:user+ profile:
15
15
16
16
[source,clojure]
17
17
----
18
- [lein-try "0.3.0"]
18
+ ;; ~/.lein/profiles.clj
19
+
20
+ {:user {:plugins [[lein-difftest "2.0.0"]
21
+ [lein-swank "1.4.4"]
22
+ [lein-try "0.3.0"]]}}
19
23
----
20
24
21
25
Now you can experience nearly instant gratification with the library of your choice:
@@ -34,7 +38,7 @@ Clojure 1.5.1
34
38
Javadoc: (javadoc java-object-or-class-here)
35
39
Exit: Control+D or (exit) or (quit)
36
40
37
- user=>
41
+ user=>
38
42
----
39
43
40
44
===== Discussion
You can’t perform that action at this time.
0 commit comments