On Mar 28, 2011, at 3:02 PM, David Nolen wrote:
> 
> Auto-indenting is achieved via the JEdit Clojure mode. You just need to drop 
> it into your JEdit modes folder (platform dependent location). 
> https://github.com/djspiewak/jedit-modes/blob/master/clojure.xml. I don't 
> consider it critical for newcomers.

I do consider this critical, especially for newcomers. I already had the 
Clojure edit mode that could be installed from the Plugins menu, and my buffers 
say "clojure" at the bottom so I assume it is working. (And I can also execute 
Clojure code via the Plugins>Clojure Shell menus.)

But following your advice I downloaded the mode file you linked, found a modes 
directory (on Mac OS X within the application package and a couple levels 
down), replaced the clojure.xml that was there with the new one, quit and 
restarted jEdit, and... it seems to behave the same as it did previously :-( 
Was one of these steps incorrect?

>> BTW I also didn't see how to affect the class path, so that I could refer to 
>> one file from another (or use a library from somewhere else, but in my case 
>> I was just trying to run a program with code in two files). Is there a way 
>> to do that?
> 
> I would use load-file in these cases. It's a limitation, but a reasonable one 
> for newcomers.

I disagree. The preferred ways to include code from libraries/files are require 
or use (preferably in ns forms) and these should work. Ideally they would find 
things in some obvious location (like the location of the source file you're 
executing) by default, and ideally there'd be a simple way to customize this. I 
think that having no way to go beyond code in a single file, aside from using 
load-file, would prevent anyone from using this as platform for more than a 
quick experiment. 

 -Lee 

-- 
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

Reply via email to