Here's a solution I found on SO:
Add tools.namespace to your project.clj dependencies.
e.g.
:dependencies [
# ...
[org.clojure/tools.namespace "0.2.4"]]
After you start up the lein repl:
user=> (use '[clojure.tools.namespace.repl :only (refresh)])
nil
... make some changes to a clj file ...
user=> (refresh)
:reloading (hello.core hello.core-test zap.models)
:ok
It's not 100% automatic, but it beats quitting/restarting. Though it does appears you have to type that use statement every time after you refresh...
No comments:
Post a Comment