Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Instructions for Leiningen 2.

  • Loading branch information...
commit 5277a5d752983872230d3efdc2109233f7ba35d8 1 parent f28bb79
@technomancy technomancy authored
Showing with 16 additions and 1 deletion.
  1. +16 −1 README.md
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
Please sign in to comment.
Something went wrong with that request. Please try again.