It was some time ago (8 months or so). I remember googling around and finding different approaches to setting up the tool chain. The notes I kept on some of the steps I tried to get Clojure working on emacs included the following (not the whole list of commands):
For some reason, this didn't work in emacs and I opted instead to run Clojure in jEdit. It worked but I didn't quite like the jEdit look and feel. Anyway, the long and the short of it was I played with Clojure mainly in jEdit for a while.
As you said, the setup process was not well documented at that time and it was quite frustrating. I'm sure it's better now. I'm going to play with Clojure in Light Table again, and if it excites me, I'll have another go at a full Clojure install.
> As you said, the setup process was not well documented at
> that time and it was quite frustrating. I'm sure it's
> better now.
As a matter of fact, it was much better than that 8 months ago, but the improvements took a while to become common knowledge. This is a massive problem with Clojure -- there's way too much outdated information out there.
For your sanity's sake: don't mess with manual Clojure installation etc. Just use leiningen for everything. It pulls in the Clojure compiler and runtime on its own, offers a much more useful REPL, and even handles Emacs integration these days. In conjunction with package.el/Emacs24, there's not a single thing you have to install manually.
You were absolutely right. I've got leiningen running in one swat (sudo apt-get install leiningen). Will mosey out to get clojure-swank running on emacs next. :)
Setting up Clojure
Followed the gist of http://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html (no longer existing) The first time, invoking 'mvn2 install' to build clojure-contrib jar failed. Later, after cleaning up Java, it worked.
Java was already installed, so I apt-get installed ant and maven2
Create a bash script called clj to start clojure with these commands: Running clj in the terminal worked, with the repl functioning as expected.For emacs:
SLIME, clojure-mode and leiningen Execute the leiningen script For some reason, this didn't work in emacs and I opted instead to run Clojure in jEdit. It worked but I didn't quite like the jEdit look and feel. Anyway, the long and the short of it was I played with Clojure mainly in jEdit for a while.As you said, the setup process was not well documented at that time and it was quite frustrating. I'm sure it's better now. I'm going to play with Clojure in Light Table again, and if it excites me, I'll have another go at a full Clojure install.