Clojure Editor

1,285 views
Skip to first unread message

WoodHacker

unread,
Mar 13, 2011, 8:09:52 AM3/13/11
to Clojure
If you are looking for a very good editor for Clojure try Bluefish.
It's been around for ever, is very stable, and does everything you
would want an editor to do. And it now works with Clojure.

http://bluefish.openoffice.nl

Bill

Shantanu Kumar

unread,
Mar 13, 2011, 9:49:08 AM3/13/11
to Clojure
Do I need a plugin? I downloaded the stock 2.0.3-1 version of the
editor and it doesn't even seem to syntax-highlight the Clojure code.

Regards,
Shantanu

kkw

unread,
Mar 13, 2011, 10:35:56 PM3/13/11
to Clojure
Hi Shantanu,

I found it by going to the "Document" menu, selecting the
"Language Mode" sub-list menu option, and selecting the "Clojure"
option.

Regards,

Kevin

Shantanu Kumar

unread,
Mar 14, 2011, 1:35:50 AM3/14/11
to Clojure
Hi Kevin,

Thanks, it works for me now. Any idea how to associate .clj files with
Clojure mode by default in Bluefish?

Regards,
Shantanu

WoodHacker

unread,
Mar 14, 2011, 8:06:10 AM3/14/11
to Clojure
The file you need should be there. First look under the Document/
Language Support menu item. You should see and entry for Clojure.
Try checking it. The syntax file is called clojure.bflang2 and it
should be in a Bluefish directory somewhere on your system. I am
using a MAC, so the file is under the /Applicatiions directory. If
you need to adjust the bflang2 file for some reason, the file that
explains how to do it is Sample.bflang2. If none of this makes
sense and you can't find clojure.bflang2, try contacting the Bluefish
people by sending and email to bluefis...@lists.ems.ru.

Lee Spector

unread,
Mar 14, 2011, 10:06:25 PM3/14/11
to clo...@googlegroups.com

The Clojure mode activates for me, and I get a little bit syntax coloring, autocompletion, and () matching. But I don't get language aware indentation. Should I, or isn't this supported? (It's a really important feature IMHO.) Also, no matching of [] or {} (less important for me).

Thanks,

-Lee

WoodHacker

unread,
Mar 16, 2011, 8:38:34 AM3/16/11
to Clojure
Check preferences from the toolbar or the Bluefish dropdown. There
are checks for Smart Auto Indenting and Highlighting block
delimiters. There's very little this editor doesn't do. You just
have to make sure all the checks you want are set.

Bill

On Mar 14, 10:06 pm, Lee Spector <lspec...@hampshire.edu> wrote:
> The Clojure mode activates for me, and I get a little bit syntax coloring, autocompletion, and () matching. But I don't get language aware indentation. Should I, or isn't this supported? (It's a really important feature IMHO.) Also, no matching of [] or {} (less important for me).
>
> Thanks,
>
>  -Lee
>
> On Mar 14, 2011, at 8:06 AM, WoodHacker wrote:> The file you need should be there.   First look under the Document/
> > Language Support menu item.   You should see and entry for Clojure.
> > Try checking it.    The syntax file is called clojure.bflang2 and it
> > should be in a Bluefish directory somewhere on your system.   I am
> > using a MAC, so the file is under the /Applicatiions directory.    If
> > you need to adjust the bflang2 file for some reason, the file that
> > explains how to do it is Sample.bflang2.    If none of this makes
> > sense and you can't find clojure.bflang2, try contacting the Bluefish
> > people by sending and email to bluefish-us...@lists.ems.ru.

Lee Spector

unread,
Mar 16, 2011, 9:16:25 AM3/16/11
to clo...@googlegroups.com

I have "Smart auto indenting" on in the preferences, and the language is set to Clojure, but I don't see any smarts. If I type:

(defn foo

and hit return the cursor goes to the beginning of the next line, not indented. If I hit the tab key it tabs in, but it'll tab anything in further each time I hit tab; it's not sensitive to the syntax or at least it's not going to a reasonable place for the syntax. Within a definition if I type:

(cons (first x)

and hit return the cursor goes beneath the first "(", not beneath the second "(" (which is the behavior of emacs modes, which I prefer) or even under the "o" (which is the current behavior of Counterclockwise). Again, I can move things around with tab but it's not syntax aware.

I've tried doing this in parentheses-balanced expressions as well, but still no smarts. I use this feature not only to keep my code neat but also to make syntax errors visually obvious; it won't help for this if the indentation isn't automatically aware of the language's syntax.

What am I missing?

Thanks,

-Lee

WoodHacker

unread,
Mar 17, 2011, 7:16:36 AM3/17/11
to Clojure
Bluefish does not work that way. It will indent to the last
indentation in all cases. I've never used EMacs, but all the editors
I've ever used work indenting the same way. All I can suggest is
that you ask the Bluefish users group if there is a way to do what you
want.

Lee Spector

unread,
Mar 17, 2011, 8:05:27 AM3/17/11
to clo...@googlegroups.com
On Mar 17, 2011, at 7:16 AM, WoodHacker wrote:

> Bluefish does not work that way. It will indent to the last
> indentation in all cases. I've never used EMacs, but all the editors
> I've ever used work indenting the same way. All I can suggest is
> that you ask the Bluefish users group if there is a way to do what you
> want.


Thanks. Following your suggestion I've just asked about this on the Bluefish users group email list.

FWIW the feature I describe (syntax-aware auto-indenting) is common in the Lisp world, not only in emacs but also (to name just a few that are fresh in my memory) in MCL, DrScheme and LispWorks. I think it's the Lisp world norm. In the Clojure world versions are also available in (at least) Eclipse/Counterclockwise and NetBeans/Enclojure, although these aren't as refined as I would like. It's a very handy feature that I (and presumably others) have come to rely upon.

-Lee

James Reeves

unread,
Mar 17, 2011, 11:05:08 AM3/17/11
to clo...@googlegroups.com
On 17 March 2011 12:05, Lee Spector <lspe...@hampshire.edu> wrote:
> FWIW the feature I describe (syntax-aware auto-indenting) is common in the Lisp world, not only in emacs but also (to name just a few that are fresh in my memory) in MCL, DrScheme and LispWorks.

It's also common in many other languages. Most IDEs have
smart-indenting, as do most advanced editors, like Vim, Emacs,
Textmate, jEdit, etc. I'm pretty surprised Bluefish doesn't have it.

- James

Martin DeMello

unread,
Mar 17, 2011, 2:58:48 PM3/17/11
to clo...@googlegroups.com, James Reeves

Yeah, it's actually my top requirement for a programming editor, ahead
of even syntax highlighting.

martin

derhase

unread,
Mar 17, 2011, 4:40:13 PM3/17/11
to Clojure
HI guys,


Is there any possibility to run the written Clojure code in the
blueFish Ide?




thx and regards,


derhase

Olivier Lefevre

unread,
Mar 18, 2011, 11:04:41 PM3/18/11
to clo...@googlegroups.com
On 3/13/2011 1:09 PM, WoodHacker wrote:
> If you are looking for a very good editor for Clojure try Bluefish.
> It's been around for ever, is very stable, and does everything you
> would want an editor to do. And it now works with Clojure.

Unless I am mistaken it seems to be missing a nice-to-have feature
for a programmer's editor, namely scriptability.

-- O.L.

Shree Mulay

unread,
Mar 29, 2011, 2:29:59 PM3/29/11
to Clojure
I'm unable to get this to work on my Windows 7 64 bit platform. I
read something about installing an older gtk instead of the latest,
which I did, but I'm still unable to get it to start without showing
an error. Any ideas?

Shree Mulay

unread,
May 30, 2011, 3:59:36 PM5/30/11
to clo...@googlegroups.com
Well, my os crashed, and after a clean install was finally able to get Bluefish to work on Win7-64x.

I'm happy that I was able to get a simple, stand alone ide that supports clojure to FINALLY work. Before this, I have been using geany and notepad++ interchangeably - but without clojure support...

Anyhow, there is one feature missing (or I haven't figured out how to activate it) that I would like.

In Notepad++ for example, if I highlight a sequence, all other sequences that match throughout the document automagically become highlighted - Can Bluefish swim this ways? And if so, how?

Thanks in advance!
Reply all
Reply to author
Forward
0 new messages