Swank

ninjudd edited this page Jul 18, 2011 · 7 revisions

Cake provides swank support out of the box. Follow these steps to enable swank:

  1. run cake --global
  2. add :dev-dependencies [[swank-clojure "1.3.2"]] to ~/.cake/project.clj
  3. run cake deps --global
  4. run cake kill (if you already tried to start cake swank in this project)
  5. start swank with cake swank -r [port]
  6. M-x slime-connect in emacs

You can also configure swank to start automatically when cake starts. Just add a line like this to PROJECT_DIR/.cake/config with a different port for each project:

swank.autostart = localhost:4007