Emacs REPL for Arcadia, the integration of Clojure and Unity.
arcadia.el
is not currently published, so for now users must load it manually.
arcadia.el
requires
inf-clojure, which can be
installed in the normal way using el-get
or M-x list-packages
.
-
Start a Unity project that includes Arcadia in its
Assets
directory. -
From emacs, run
M-x arcadia-repl
A REPL should show up, with the same behavior and keybindings as inf-clojure. Some inf-clojure commands may not work as expected yet.
inf-clojure
is set up to print argslists for invocation forms when the cursor is over them. It seems to do so by sending input to the Clojure REPL. When used with Arcadia's REPL, this can slow down emacs. inf-clojure
does not seem to expose an easy way of turning this feature off. As a temporary workaround arcadia.el
wraps the inf-clojure-eldoc-setup
function in advice that effectively disables it, thereby disabling the argslist reporting behavior. Unfortunately this also disables argslists for inf-clojure
when used with Clojure JVM. To reenable argslists, run
(advice-remove 'inf-clojure-eldoc-setup #'arcadia-inf-clojure-eldoc-setup-wrapper)
To enable correct interaction with .cljc
files, add clojurec-mode
to the inf-clojure-source-modes
defcustom
var.