Hi Sam,- I've got everything working now (Swank, Slime, the lein2 command). Many thanks for your comments. I'll get back to you if I have more feedback on Emacs Live.
Cheers, James On May 28, 10:58 pm, Sam Aaron <samaa...@gmail.com> wrote: > On Monday, 28 May 2012 at 17:59, James wrote: > > Regarding Slime and Swank: I guess I don't yet understand the Clojure > > distinction between "project" and "file". I've got an absolutely > > trivial file that I want to test out, but it looks like Swank expects > > there to be a "project.clj". (I opened the file in Emacs, then went M- > > x clojure-jack-in, then got "Could not start swank server: Couldn't > > find project.clj"). > > Slime is the Emacs client application. Swank is the server which the Slime > client communicates with. In Clojure's case, the Swank server runs on the JVM > and therefore needs the classpath to be set up correctly. Leiningen is a tool > that will set up the classpath for you (amongst many other things). I believe > that clojure-jack-in requires Leiningen to work. I have never used it, so > can't be sure. I tend to use the swank jar directly from Leiningen: > > > > > Also, I don't understand this: > > > "Simply start swank in a Clojure project with lein2 swank". > > > Is "lein2 swank" a shell command issued from inside a Clojure project > > folder? > > This is what I mean by using the swank jar directly from Leiningen. In this > case I'm using Leiningen 2.x (hence lein2) and I'm asking it to run the swank > task. I do this from the command line, outside of Emacs. > > Sam > > --http://sam.aaron.name -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en