what exactly does clojure-jack-in do? And how to config the settings with slime ?
What do I need to add to .emacs?
what exactly does clojure-jack-in do? And how to config the settings with slime ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
clojure-jack-instarts a SLIME session for your current project.It does this by generating a random port number, running
lein jack-inwith this port number in a sub-process, waiting for the swank server to start and then callingslime-connectwith the port number.Since
lein jack-inis used to start the swank server, you obviously need to use Leiningen in your project and you need to have the swank-clojure plugin for Leiningen installed, either by installing it as a stand-alone plugin (lein plugin install swank-clojure 1.3.2), or by including it as a dev-dependency in yourproject.clj.On the Emacs side, you need to install
clojure-mode, preferably from Marmalade. You shouldn’t need to add anything to your.emacs.The difference between using
lein jack-in(viaM-x clojure-jack-in) vs. runninglein swankis thatclojure-jack-inalso loads a version of SLIME that is bundled with the swank-clojure Leiningen plugin instead of the SLIME version installed in Emacs. I’m not sure what’s the reasoning behind this, presumably just to make sure the SLIME version is compatible with the swank server.