nREPL middleware to save a transcript of your repl interactions.
Update your project.clj
with
(defproject your-project
:dependencies [...
[nrepl-transcript "0.1.0"]
...]
...
:repl-options {:nrepl-middleware
[nrepl-transcript.file/wrap-file-transcript]}
...)
and all your interactions will appear in a "transcript.txt" file in the root of your project.
You can also add the followings to ~/.lein/profiles.clj
to record repl interactions system wide:
{:user {...
:dependencies [[nrepl-transcript "0.1.0"]]
:repl-options {:nrepl-middleware
[nrepl-transcript.file/wrap-file-transcript]}}
...}
- capture
*out*
Copyright © 2013 Jonas Enlund
Distributed under the Eclipse Public License, the same as Clojure.