An Emacs client for unrepl.
Depends on Emacs >= 25.
This is an alpha level proof of concept. Very rough around the edges. YMMV.
Start a socket REPL, e.g.
JAVA_OPTS="-Dclojure.server.unrepl={:address \"127.0.0.1\" :port 5555 :accept clojure.core.server/repl}" lein run -m clojure.main/main
or with Leiningen
lein run -m clojure.main -e "(clojure.core.server/start-server {:port 5555 :name (str 'server) :accept 'clojure.core.server/repl}) (.join (Thread/currentThread))"
or with Boot >= 2.7.2
boot socket-server --port 5555 wait
In Emacs
(load "path/to/unrepl.el")
Now do M-x unrepl-connect
. You'll get a prompt: Socket REPL host/port:
.
Type for instance 5555
or your.host.com:1234
. It should pop up a
*unrepl-repl*
buffer.
In a Clojure buffer you can enable unrepl-mode
to get eval support (C-x C-e
).
You can look at the *unrepl-output*
buffer to see the raw unrepl EDN messages.
Copyright © Arne Brasseur 2017.
Distributed under the Mozilla Public License 2.0.