Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update instructions to show user-level plugin installation.

  • Loading branch information...
commit 11ac0f9d3a51dfe5fc8773f11b0aba170a532400 1 parent 343568d
Phil Hagelberg technomancy authored
Showing with 15 additions and 14 deletions.
  1. +15 −14 README.md
29 README.md
View
@@ -44,20 +44,21 @@ The library also offers an API for programatically 'parsing' exceptions. This AP
(catch Exception e
(parse-exception e)))
-If you use Leiningen, you can hook clj-stacktrace straight into your
-project in.
-
- :dev-dependencies [[clj-stacktrace "0.2.3-SNAPSHOT"]]
- :hooks [leiningen.hooks.clj-stacktrace-test]
- :repl-options [:caught clj-stacktrace.repl/pst+]
- :clj-stacktrace {:test-color true}
-
-The :hooks entry will enable clj-stacktrace to be used by clojure.test
-and other things that use the clojure.stacktrace library. The
-:repl-options entry will cause clj-stacktrace to be used in the
-repl. Colorized stacktraces in clojure.test can interfere with some
-tools like Swank, so by default it uses pst rather than pst+; you can
-change this with {:color true}.
+If you use Leiningen, you can install clj-stacktrace on a per-user basis:
+
+ $ lein plugin install clj-stacktrace 0.2.3
+
+Add this to your `~/.lein/init.clj` file:
+
+ (require 'leiningen.hooks.clj-stacktrace-test)
+
+ (def settings {:repl-options [:init (require 'clj-stacktrace.repl)
+ :caught 'clj-stacktrace.repl/pst+]})
+
+The hook will enable clj-stacktrace to be used across all the projects
+you work on in clojure.test and other things that use the
+clojure.stacktrace library. The :repl-options settings will cause
+clj-stacktrace to be used in the repl and swank.
## License
Please sign in to comment.
Something went wrong with that request. Please try again.