technomancy / swank-clojure

Swank/slime support for clojure
Eclipse Public License 1.0
412 stars 83 forks source link

Added ClojureScript support. #128

Closed blais closed 12 years ago

blais commented 12 years ago

Support for ClojureScript was added by defining a new command under swank.commands.cljs. This command is triggered by an Emacs customization (see clojure-mode).

Note that swank does not automatically run this code, so as to avoid forcing those not using cljs to require it. In order to add repl support to a VM, one has to register a repl explicitly, before starting it:

(require '[swank.commands.cljs :as swank-cljs]) (def env (browser/repl-env)) (swank-cljs/register-repl :cljs-repl env)

Different repls can be supported by registering different keys and using suitable buffer-local variables from Emacs.