forked from clojure/clojurescript
-
Notifications
You must be signed in to change notification settings - Fork 15
devn edited this page Feb 28, 2012
·
3 revisions
- Install Tmux
- Install tslime.vim
- Install Leiningen plugin: lein-repls
- Also install the
cljsh
script on your path
- Also install the
In project.clj
add:
:repl-init myapp.repl
In src/clj/myapp/repl.clj
:
(ns myapp.repl
(:use [cljs.repl.browser :only (repl-env)])
(:require [cljs.repl]))
(defn repljs []
(cljs.repl/repl (repl-env)))
- Open two TMux sessions in your project root directory
- Run
lein repls
in one of them- This is your "server" or "macros" or "clj" repl
- Run
cljsh
in the other one- This is your "client" or "cljs" repl
- Eval
(repljs)
- Open two instances of Vim
- One in your
src/clj
directory and one insrc/cljs
directory
- One in your
- Press
^c^c
in each, selecting the right TMux session when prompted