Added ClojureScript support. #128

Merged
merged 9 commits into from May 25, 2012

Conversation

Projects
None yet
2 participants

blais commented May 20, 2012

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.

technomancy added a commit that referenced this pull request May 25, 2012

Merge pull request #128 from blais/master
Added ClojureScript support.

@technomancy technomancy merged commit 57844d3 into technomancy:master May 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment