An nREPL middleware for use with datomic's codeq. elisp
for nrepl.el is
provided to use the middleware.
You will need an nREPL srever running the codeq middleware, and to have the
nrepl-ritz.el
emacs package installed.
Add nrepl-codeq to your :dev
(in project.clj
) or :user
(in
~/.lein/profiles.clj
) dependencies.
:dependencies [[ritz/ritz-nrepl-middleware "0.5.0"]]
Add wrap-codeq-def to your nREPL middleware (in project.clj
or your :user
profile).
:repl-options {:nrepl-middleware
[ritz.nrepl.middleware.codeq-def/wrap-codeq-def]}
To view the definitions of a symbol within an nrepl.el session, use
M-x nrepl-codeq-def
The middleware provides the "codeq-def" op, and requires "symbol" and "datomic-url" arguments. It returns list, where each element is a list containing a source element and a date element.
The middleware introduces a dependency on datomic in the user's project classpath. This transitively depends on clojure 1.5.0 alpha's.
Copyright © 2012 Hugo Duncan
Distributed under the Eclipse Public License.