lein: https://github.com/technomancy/leiningen
lein tutorial:
https://github.com/technomancy/leiningen/blob/1.x/doc/TUTORIAL.md
swank-clojure: https://github.com/technomancy/swank-clojure
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@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+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
It's not really feasible to have a slime setup that's compatible with
both CL and Clojure without using Leiningen. The path of least
resistance is shown in the swank-clojure readme. The tl;dr version
follows:
* install Leiningen
* install the swank-clojure plugin: lein plugin install swank-clojure 1.3.2
* install clojure-mode (you can do this from git)
* navigate to a project and do M-x clojure-jack-in
That's all it takes. It might work with Aquamacs, but since that fork
is not portable it's impossible for me to test on it. So GNU Emacs is
recommended.
If you absolutely cannot use Leiningen then you will have to manually
juggle between the CL-compatible versions of slime packages and the
Clojure-compatible ones, which from what I've heard from CL users
sounds like a nightmare. (This is due to the fact that the Slime
developers only target CL and refuse to make stable releases.) If you
only need Clojure support then it's a little easier to get along
without Leiningen, but it's still a pain in the neck. But the
swank-clojure readme does explain embedding swank in your own
application. You just need to manually load the slime elisp files from
the swank-clojure git repository.
-Phil
* install Leiningen
* install the swank-clojure plugin: lein plugin install swank-clojure 1.3.2
* install clojure-mode (you can do this from git)
* navigate to a project and do M-x clojure-jack-inThat's all it takes. It might work with Aquamacs, but since that fork
is not portable it's impossible for me to test on it. So GNU Emacs is
recommended.
In order to make it work I had to remove the autodoc option, by
commenting line 20 from /Library/Application Support/Aquamacs
Emacs/SLIME/contrib/slime-fancy.el:
;(slime-autodoc-init)
So by starting swank manually with "lein swank" (or swank-clojure) +
M-x slime-connect I can now evaluate Clojure code in the REPL; instead
when doing a "clojure-jack-in" I get the following error:
(from *Messages* buffer)
<< Starting swank server...
<< error in process filter: progn: Invalid read syntax: ")"
<< error in process filter: Invalid read syntax: ")"
(last lines from *swank* buffer)
<< (provide 'slime-repl)
<< ;;; slime-repl.el ends here
<< (run-hooks 'slime-load-hook)
Any idea?
(Lein's swank plugin uses an embedded slime.el - check
swank-clojure-1.4.0-SNAPSHOT.jar\swank\payload)