-
Notifications
You must be signed in to change notification settings - Fork 792
Matthew Phillips edited this page Jan 14, 2014
·
6 revisions
Emacs users are used to the paredit plugin that makes it easy to keep parenthesis balanced. Vim users can get the same effect with paredit.vim.
- Install Tmux
- Install tslime.vim
- Install Leiningen plugin: lein-repls
- Also install the
cljshscript on your path
- Also install the
In project.clj add:
:repl-init myapp.replIn 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 replsin one of them- This is your "server" or "macros" or "clj" repl
- Run
cljshin the other one- This is your "client" or "cljs" repl
- Eval
(repljs)
- Open two instances of Vim
- One in your
src/cljdirectory and one insrc/cljsdirectory
- One in your
- Press
^c^cin each, selecting the right TMux session when prompted
- Rationale
- Quick Start
- Differences from Clojure
- [Usage of Google Closure](Google Closure)