Permalink
Browse files

Instructions for Leiningen 2.

  • Loading branch information...
1 parent f28bb79 commit 5277a5d752983872230d3efdc2109233f7ba35d8 @technomancy technomancy committed Feb 22, 2012
Showing with 16 additions and 1 deletion.
  1. +16 −1 README.md
View
17 README.md
@@ -46,7 +46,22 @@ The library also offers an API for programatically 'parsing' exceptions. This AP
(parse-exception e)))
```
-If you use Leiningen, you can install clj-stacktrace on a per-user basis:
+## Leiningen
+
+If you use Leiningen, you can install clj-stacktrace on a per-user basis.
+
+For Leiningen 2.x, add the following to `~/.lein/profiles`:
+
+```clj
+{:user {:dependencies {clj-stacktrace "0.2.4"}
+ :injections [(let [orig (ns-resolve (doto 'clojure.stacktrace require)
+ 'print-cause-trace)
+ new (ns-resolve (doto 'clj-stacktrace.repl require)
+ 'pst)]
+ (alter-var-root orig (constantly @new)))]
+```
+
+For Leiningen 1.x:
$ lein plugin install clj-stacktrace 0.2.4

0 comments on commit 5277a5d

Please sign in to comment.