Re: Emacs clojure mode: how to set current directory classpath

2009-07-29 Thread Luke Amdor
I wrote a emacs macro to help set up different slime implementations for clojure. It has been really helpful. It's at http://github.com/rubbish/rubbish-emacs-setup/blob/ad5bfc6f74cc9f794470e50080f8076b5599fb24/mine/mine-slime.el#L19 I probably should contribute it back to swank-clojure though.

Re: Emacs clojure mode: how to set current directory classpath

2009-07-28 Thread Baishampayan Ghose
Phil, Another question. Where do I put the clojure clojure-contrib JAR files? If you use the M-x clojure-install command, this should get all the dependencies. If you're getting stuck at the Polling stage, it's probably because you didn't do M-x clojure-install. If you do that and you

Re: Emacs clojure mode: how to set current directory classpath

2009-07-28 Thread Piyush Ranjan
Another question. Where do I put the clojure clojure-contrib JAR files? If you use the M-x clojure-install command, this should get all the dependencies. If you're getting stuck at the Polling stage, it's probably because you didn't do M-x clojure-install. If you do that and you

Re: Emacs clojure mode: how to set current directory classpath

2009-07-28 Thread Baishampayan Ghose
Piyush, For me it works like this .bashrc export CLASSPATH=.:/usr/local/clojure/clojure-1.0.0.jar .emacs (setq inferior-lisp-program java -server clojure.lang.Repl) (setq load-path (cons /usr/local/clojure/clojure-mode load-path)) (require 'clojure-mode) I was not talking about the

Re: Emacs clojure mode: how to set current directory classpath

2009-07-28 Thread Luke Renn
On Jul 28, 5:15 am, Baishampayan Ghose b.gh...@ocricket.com wrote: Is there any way for me to just put the JAR files somewhere and get them added to the classpath? Put them in a lib/ folder at your project root. Luke --~--~-~--~~~---~--~~ You received this

Re: Emacs clojure mode: how to set current directory classpath

2009-07-28 Thread Baishampayan Ghose
Luke, Is there any way for me to just put the JAR files somewhere and get them added to the classpath? Put them in a lib/ folder at your project root. Many thanks Luke. That worked. I should have looked at the source of clojure-project before. Thanks again. Regards, BG -- Baishampayan

Re: Emacs clojure mode: how to set current directory classpath

2009-07-21 Thread Baishampayan Ghose
Phil, As long as you unpack your deps all in one place and stick to the same classpath conventions, the fact that you can't change the classpath at runtime is not a significant problem. Can you kindly explain exactly what kind of conventions you follow as far as laying out the code,

Re: Emacs clojure mode: how to set current directory classpath

2009-07-21 Thread Baishampayan Ghose
Phil, As long as you unpack your deps all in one place and stick to the same classpath conventions, the fact that you can't change the classpath at runtime is not a significant problem. Can you kindly explain exactly what kind of conventions you follow as far as laying out the code,

Re: Emacs clojure mode: how to set current directory classpath

2009-07-21 Thread Anne Ogborn
While we're on this subject, anybody know the same information for La Clojure? That is, how to set up the current directory and classpath so one can compile java classes from Clojure? IntelliJ has many strengths, but a simple, transparent mechanism to add an arbitrary directory or jar to

Re: Emacs clojure mode: how to set current directory classpath

2009-07-21 Thread Phil Hagelberg
Baishampayan Ghose b.gh...@ocricket.com writes: Another question. Where do I put the clojure clojure-contrib JAR files? If you use the M-x clojure-install command, this should get all the dependencies. If you're getting stuck at the Polling stage, it's probably because you didn't do M-x

Re: Emacs clojure mode: how to set current directory classpath

2009-07-21 Thread Glen Stampoultzis
2009/7/21 Anne Ogborn annie6...@yahoo.com While we're on this subject, anybody know the same information for La Clojure? That is, how to set up the current directory and classpath so one can compile java classes from Clojure? IntelliJ has many strengths, but a simple, transparent

Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Howard Lewis Ship
I've gotten a bit frustrated by the alpha Eclipse plugin and I'm trying my hand at (Aqua)Emacs again. My biggest frustration is gettting the classpath current directory set up correctly. I have main my code in package folders under src/main/clojure, and my tests under src/test/clojure ... and

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Chris Dean
My biggest frustration is gettting the classpath current directory set up correctly. I'm wondering what other people do to manage these issues. What I do is run clojure under slime and have an external script that creates the correct classspath and then launches clojure. The script

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Phil Hagelberg
Howard Lewis Ship hls...@gmail.com writes: I have main my code in package folders under src/main/clojure, and my tests under src/test/clojure ... and I need src/main/resources and src/test/resources on the classpath as well. I'm wondering what other people do to manage these issues.

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Baishampayan Ghose
Phil, As long as you unpack your deps all in one place and stick to the same classpath conventions, the fact that you can't change the classpath at runtime is not a significant problem. Can you kindly explain exactly what kind of conventions you follow as far as laying out the code,

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Laurent PETIT
So bad you had a bad user experience with the clojure plugin, but I can understand that you have not been patient (*) enough for us to fix the performance issue you found. I hope you will give it a try from time to time, though. Regards, -- Laurent (*) pun intended in relation with another

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Howard Lewis Ship
On Mon, Jul 20, 2009 at 12:04 PM, Laurent PETITlaurent.pe...@gmail.com wrote: So bad you had a bad user experience with the clojure plugin, but I can understand that you have not been patient (*) enough for us to fix the performance issue you found. I hope you will give it a try from time to

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Phil Hagelberg
Baishampayan Ghose b.gh...@ocricket.com writes: Phil, As long as you unpack your deps all in one place and stick to the same classpath conventions, the fact that you can't change the classpath at runtime is not a significant problem. Can you kindly explain exactly what kind of conventions

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Howard Lewis Ship
How well does the Emacs Starter Kit work in AquaEmacs? On Mon, Jul 20, 2009 at 10:59 AM, Phil Hagelbergp...@hagelb.org wrote: Howard Lewis Ship hls...@gmail.com writes: I have main my code in package folders under src/main/clojure, and my tests under src/test/clojure ... and I need

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Phil Hagelberg
Howard Lewis Ship hls...@gmail.com writes: How well does the Emacs Starter Kit work in AquaEmacs? Unfortunately I can't test it with Aquamacs myself since it's not portable, but I've heard reports of it working well. Aquamacs is incompatible with GNU Emacs in a number of undocumented

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Howard Lewis Ship
What version of emacs should I be using? Currently I'm using Emacs 22.1.1, which I believe is the built-in version for mac. When I m-x clojure-project, it prompts for a directory, but then fails with: Symbol's function definition is void: swank-clojure-cmd In addition, if I open a Clojure

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Howard Lewis Ship
I'm dense ... missed the part about installing the clojure mode, trying again. On Mon, Jul 20, 2009 at 1:53 PM, Howard Lewis Shiphls...@gmail.com wrote: What version of emacs should I be using? Currently I'm using Emacs 22.1.1, which I believe is the built-in version for mac. When I m-x

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Howard Lewis Ship
Marking those packages, then 'x' to execute, generates a number of errors: Compiling file /Users/Howard/.emacs.d/elpa/clojure-mode-1.1/clojure-mode-pkg.el at Mon Jul 20 \ 13:56:16 2009 ^L Compiling file /Users/Howard/.emacs.d/elpa/clojure-mode-1.1/clojure-mode.el at Mon Jul 20 13:5\ 6:16 2009

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Luke Renn
On Jul 20, 3:25 pm, Phil Hagelberg p...@hagelb.org wrote: Basically: * Source under src/ * Tests under test/ * AOT bytecode under target/classes/ * Dependencies all unpacked together under target/dependency/ Since I use the same conventions for every single project, I never have to

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Phil Hagelberg
Howard Lewis Ship hls...@gmail.com writes: What version of emacs should I be using? Currently I'm using Emacs 22.1.1, which I believe is the built-in version for mac. That should do the trick; you might as well wait for the release if you want to get version 23 since it's so soon. The package

Re: Emacs clojure mode: how to set current directory classpath

2009-07-20 Thread Garth Sheldon-Coulson
If the Eclipse plugin isn't working for you and you're looking for an IDE, you might try the La Clojure plugin for IDEA. It's stable and featureful and works great for me. On 7/20/09, Phil Hagelberg p...@hagelb.org wrote: Howard Lewis Ship hls...@gmail.com writes: I have main my code in