Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update instructions to show user-level plugin installation.

  • Loading branch information...
commit 11ac0f9d3a51dfe5fc8773f11b0aba170a532400 1 parent 343568d
Phil Hagelberg technomancy authored

Showing 1 changed file with 15 additions and 14 deletions. Show diff stats Hide diff stats

  1. +15 14 README.md
29 README.md
Source Rendered
@@ -44,20 +44,21 @@ The library also offers an API for programatically 'parsing' exceptions. This AP
44 44 (catch Exception e
45 45 (parse-exception e)))
46 46
47   -If you use Leiningen, you can hook clj-stacktrace straight into your
48   -project in.
49   -
50   - :dev-dependencies [[clj-stacktrace "0.2.3-SNAPSHOT"]]
51   - :hooks [leiningen.hooks.clj-stacktrace-test]
52   - :repl-options [:caught clj-stacktrace.repl/pst+]
53   - :clj-stacktrace {:test-color true}
54   -
55   -The :hooks entry will enable clj-stacktrace to be used by clojure.test
56   -and other things that use the clojure.stacktrace library. The
57   -:repl-options entry will cause clj-stacktrace to be used in the
58   -repl. Colorized stacktraces in clojure.test can interfere with some
59   -tools like Swank, so by default it uses pst rather than pst+; you can
60   -change this with {:color true}.
  47 +If you use Leiningen, you can install clj-stacktrace on a per-user basis:
  48 +
  49 + $ lein plugin install clj-stacktrace 0.2.3
  50 +
  51 +Add this to your `~/.lein/init.clj` file:
  52 +
  53 + (require 'leiningen.hooks.clj-stacktrace-test)
  54 +
  55 + (def settings {:repl-options [:init (require 'clj-stacktrace.repl)
  56 + :caught 'clj-stacktrace.repl/pst+]})
  57 +
  58 +The hook will enable clj-stacktrace to be used across all the projects
  59 +you work on in clojure.test and other things that use the
  60 +clojure.stacktrace library. The :repl-options settings will cause
  61 +clj-stacktrace to be used in the repl and swank.
61 62
62 63 ## License
63 64

0 comments on commit 11ac0f9

Please sign in to comment.
Something went wrong with that request. Please try again.