I found this website which explains how to use emacs with leiningen, swank, and slime. Is there a way to use slime + swank in non-leiningen projects i.e. how can I connect to slime/swank repl to run a ad-hoc Clojure script while I write it as demonstrated here?
Share
You need to have
swank-clojure.jarinCLASSPATHand your script should have following code:to start swank process on port
4005(or some other)…P.S. You can look onto Incanter’s swank script, that pass this code in environment variable, and later it evaluated as part of boostrap script