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 ie how can I connect to slime/swank repl to run a ad-hoc Clojure script while I write it as demonstrated here ?
You need to have swank-clojure.jar
in CLASSPATH
and your script should have following code:
(require 'swank.swank)
(swank.swank/start-repl 4005)
to start swank process on port 4005
(or some other)...
PS You can look onto Incanter's swank script, that pass this code in environment variable, and later it evaluated as part of boostrap script
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.