My non-ELPA Emacs swank-clojure setup

2010-04-07 Thread Ævar Arnfjörð Bjarmason
I stubbornly refuse to use ELPA. I keep my ~/.emacs and associated libraries in Git[1][2] and don't like deviating from that with ELPA by running the clojure code from an unversioned directory that isn't automatically there when I set up my Emacs configuration from Git. I couldn't find any documen

Re: My non-ELPA Emacs swank-clojure setup

2010-04-07 Thread Brent Millare
http://tentclube.blogspot.com/ I made a blog post on this a while ago, but I've simplified the process now. I'm still working on making it easier to deploy on different systems though. -Brent On Apr 7, 5:12 pm, Ævar Arnfjörð Bjarmason wrote: > I stubbornly refuse to use ELPA. I keep my ~/.emacs

Re: My non-ELPA Emacs swank-clojure setup

2010-04-07 Thread Phil Hagelberg
On Wed, Apr 7, 2010 at 7:57 PM, Brent Millare wrote: > http://tentclube.blogspot.com/ > > I made a blog post on this a while ago, but I've simplified the > process now. I'm still working on making it easier to deploy on > different systems though. Both those options sound like an awful lot of wor

Re: My non-ELPA Emacs swank-clojure setup

2010-04-08 Thread Tassilo Horn
On Thursday 08 April 2010 07:08:43 Phil Hagelberg wrote: Hi Phil, > Both those options sound like an awful lot of work. I'm curious as to > what advantages there are to this method over the original > installation instructions. To me, all this stuff seems to magical, for example that swank-cloj

Re: My non-ELPA Emacs swank-clojure setup

2010-04-08 Thread Pelayo Ramón
>  M-x slime RET > > I only get this error: > > , > | Clojure 1.1.0 > | user=> java.io.FileNotFoundException: Could not locate > swank/swank__init.class or swank/swank.clj on classpath:  (NO_SOURCE_FILE:0) > | user=> user=> java.lang.ClassNotFoundException: swank.swank > (NO_SOURCE_FILE:0) >

Re: My non-ELPA Emacs swank-clojure setup

2010-04-08 Thread Tassilo Horn
On Thursday 08 April 2010 12:08:37 Pelayo Ramón wrote: Hi! > > M-x slime RET > > > > I only get this error: > > > > , > > | Clojure 1.1.0 > > | user=> java.io.FileNotFoundException: Could not locate > > swank/swank__init.class or swank/swank.clj on classpath: (NO_SOURCE_FILE:0) > > | user=

Re: My non-ELPA Emacs swank-clojure setup

2010-04-08 Thread Alex Osborne
Tassilo Horn writes: > To me, all this stuff seems to magical, for example that swank-clojure > downloads the required clojure/contrib jars (at least the comment in the > el-file says so). How do I know what version it will fetch? How does > it know when to update those jars? It will only down

Re: My non-ELPA Emacs swank-clojure setup

2010-04-08 Thread Tassilo Horn
On Thursday 08 April 2010 12:28:07 Alex Osborne wrote: Hi Alex, > > To me, all this stuff seems to magical, for example that > > swank-clojure downloads the required clojure/contrib jars (at least > > the comment in the el-file says so). How do I know what version it > > will fetch? How does it

Re: My non-ELPA Emacs swank-clojure setup

2010-04-08 Thread Pelayo Ramón
>> It will only download anything if ~/.swank-clojure and ~/.clojure >> don't exist. > > Ah, then that's my problem.  I already have a ~/.clojure/ directory with > a user.clj, the leiningen jar, and some additional jars, but not > swank-clojure.jar.  ~/.swank-clojure doesn't exist, though. > That

Re: My non-ELPA Emacs swank-clojure setup

2010-04-08 Thread Alex Osborne
Tassilo Horn writes: > To get swank-clojure.jar I need to check out the project from github and > use "lein jar" to generate the jar, right? Or is it possible to > download a ready-made jar? You can just download it by hand from Clojars if you like: http://clojars.org/repo/swank-clojure/swank-

Re: My non-ELPA Emacs swank-clojure setup

2010-04-08 Thread Tassilo Horn
On Thursday 08 April 2010 13:33:43 Alex Osborne wrote: Hi Alex, > > To get swank-clojure.jar I need to check out the project from github > > and use "lein jar" to generate the jar, right? Or is it possible to > > download a ready-made jar? > > You can just download it by hand from Clojars if yo

Re: My non-ELPA Emacs swank-clojure setup

2010-04-09 Thread Ævar Arnfjörð Bjarmason
On Thu, Apr 8, 2010 at 11:33, Alex Osborne wrote: > Tassilo Horn writes: >> Isn't it a bad idea to include all deps into a project, so that one ends >> up with so much duplication? > > What is a "bad idea" is subjective and depends on your use case and your > workflow.  You may need to use a part

Re: My non-ELPA Emacs swank-clojure setup

2010-04-09 Thread Ævar Arnfjörð Bjarmason
On Thu, Apr 8, 2010 at 05:08, Phil Hagelberg wrote: > On Wed, Apr 7, 2010 at 7:57 PM, Brent Millare wrote: >> http://tentclube.blogspot.com/ >> >> I made a blog post on this a while ago, but I've simplified the >> process now. I'm still working on making it easier to deploy on >> different system

Re: My non-ELPA Emacs swank-clojure setup

2010-04-09 Thread Phil Hagelberg
On Thu, Apr 8, 2010 at 2:42 AM, Tassilo Horn wrote: > I already installed leiningen, so all clojure files are already > contained in leiningen-1.1.0-standalone.jar somewhere in > ~/.m2/repository/.  Can I use those somehow? Sure, you can set lein-swank as a dev-dependency of your project, then ru

Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread DanL
Hello! On 8 Apr., 18:36, Ævar Arnfjörð Bjarmason wrote: > > Both those options sound like an awful lot of work. I'm curious as to > > what advantages there are to this method over the original > > installation instructions. > > They're only a lot of work because the existing .el code all assumes

Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread Phil Hagelberg
On Sat, Apr 10, 2010 at 9:10 AM, DanL wrote: >> Usually installing Emacs Lisp packages like this is easy and requires >> 1-2 lines of Elisp in your ~/.emacs,swank-clojureis the exception. > > Like Ævar, I am not aware of any other language mode that makes the > usual way of installing/configuring

Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread DanL
Hello! On 10 Apr., 18:57, Phil Hagelberg wrote: > > Like Ævar, I am not aware of any other language mode that makes the > > usual way of installing/configuring as hard asswank-clojure. That is > > why I use a pretty ancient version of it, which in turn prevents me > > from using the latest cvs s

Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread Ævar Arnfjörð Bjarmason
On Sat, Apr 10, 2010 at 16:57, Phil Hagelberg wrote: > On Sat, Apr 10, 2010 at 9:10 AM, DanL wrote: >> Ideally, it should be made easy for both groups. > > A capital idea. Are you volunteering? =) What would be involved in that? The hack I have is just a monkeypatch on top of swank-clojure that

Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread DanL
On 10 Apr., 19:44, Ævar Arnfjörð Bjarmason wrote: > I'm not familiar with the history but is there any reason why > swank-clojure isn't being integrated into the SLIME distribution > itself? That should make it easier to make it work out of the box. As far as I know, there were problems with the

Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread Ævar Arnfjörð Bjarmason
On Sat, Apr 10, 2010 at 21:49, DanL wrote: > On 10 Apr., 19:44, Ævar Arnfjörð Bjarmason wrote: >> I'm not familiar with the history but is there any reason why >> swank-clojure isn't being integrated into the SLIME distribution >> itself? That should make it easier to make it work out of the box.

Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread DanL
On 11 Apr., 00:34, Ævar Arnfjörð Bjarmason wrote: > > As far as I know, there were problems with the protocol using symbols > > in CL's package::symbol syntax (and some other characters not being > > allowed in Clojure) after changes in CVS Slime about five months ago. > > So it would just need t

Re: My non-ELPA Emacs swank-clojure setup

2010-04-11 Thread Brian Troutwine
Speaking as a newbie, playing nice with ~/.clojure would be great, giving a more helpful error message would be better. I suffered the same FileNotFoundException given above, nuked ~/.clojure and got going quickly enough. I didn't know _what_ was wrong, however, as I had only stumbled across the so

Re: My non-ELPA Emacs swank-clojure setup

2010-04-11 Thread Constantine Vetoshev
On Apr 8, 12:45 pm, Ævar Arnfjörð Bjarmason wrote: > If I have 10 Clojure projects I'm going to have 10 src/clojure.jar > files. Do they really need to be there or could I just use the clojure > that comes with my operating system (Debian)? > > When I hack Common Lisp I don't copy sbcl into all my

Re: My non-ELPA Emacs swank-clojure setup

2010-04-11 Thread Constantine Vetoshev
This thread encouraged me to post what I did to make swank-clojure 1.1.0 work with the the latest SLIME. It does not use any of swank- clojure's automatic .jar downloading features (as of version 1.1.0). These instructions won't work on Windows, but may work if you have Cygwin. Note that this sets

Re: My non-ELPA Emacs swank-clojure setup

2010-05-02 Thread Robert Ewald
Am Sonntag, 11. April 2010 00:59:47 schrieb DanL: > On 11 Apr., 00:34, Ævar Arnfjörð Bjarmason wrote: > > > As far as I know, there were problems with the protocol using symbols > > > in CL's package::symbol syntax (and some other characters not being > > > allowed in Clojure) after changes in CVS

Re: My non-ELPA Emacs swank-clojure setup

2010-05-02 Thread Ramakrishnan Muthukrishnan
On Mon, May 3, 2010 at 3:43 AM, Robert Ewald wrote: > Am Sonntag, 11. April 2010 00:59:47 schrieb DanL: >> On 11 Apr., 00:34, Ævar Arnfjörð Bjarmason wrote: >> > > As far as I know, there were problems with the protocol using symbols >> > > in CL's package::symbol syntax (and some other character