views:

11184

answers:

13

I am starting to learn the Clojure programming language. Are there any recommendations for Clojure editors/IDEs on Mac OS X?

Update 2009-09-23: The Clojure space has changed tremendously since I originally posted this question. Many of the links below, especially those that refer to clojure-mode with Emacs, are out-of-date. The best Clojure IDE I found was the Enclojure Netbeans plugin which was recently released (2009-08-25).

Update 2010-04-30: Another very good article on this subject is Clojure IDEs - The Grand Tour by Lau B. Jensen. Also, for my own clojure development, I have actually moved to Emacs / swank-clojure.

+2  A: 

TextMate is a great editor and has a Lisp bundle, which will suffice for Clojure (there's also an in-progress bundle available here). I've always used TextMate + the Lisp bundle for writing Clojure code.

mipadi
+6  A: 

Rich Hickey uses Aquamacs in all of his demos. He has commented about this, saying that he switched to it after someone created a Clojure mode for Emacs. I have also created a Clojure mode for jEdit.

At the moment, tool support for Clojure is pretty limited. I think you're either stuck with some Emacs variant or jEdit.

Daniel Spiewak
+10  A: 

You can try NetBeans with Enclojure.

J. Pablo Fernández
Played around with Enclojure and it's a decent environment I really like it.
Brian Gianforcaro
They need to get windows support.
Rayne
+4  A: 

Emacs with Slime may be a good choice. See this article that explains a setup.

Jazz
+18  A: 

For setting up Aquamacs, Slime and Clojure, there's a screencast on lispcast.com:

http://www.lispcast.com/drupal/node/79

Edit: That's a nice alternate screencast you found Jman. I've added it to my answer so it's a bit more comprehensive.

Matt Curtis
And the best thing about Aquamacs/Emacs is, once you get past the first couple of weeks of learning a new editor, you'll have gained a power tool you can use for just about anything.
Matt Curtis
Emacs is the original IDE. I've tried them all, and haven't yet found one that can do something Emacs can't. Conversely, all of them lack features that Emacs has. For any coding, and particularly for Lisp coding, it can't be beat.And on the off chance you find a feature lacking in Emacs, it's really a Lisp runtime that happens to come with a lot of pre-written code for text editing, so you can add it fairly easily.
Paul Legato
+3  A: 

I dug around, and found this link to be very useful as well:

http://paulbarry.com/articles/2008/07/02/getting-started-with-clojure-and-aquamacs

Julien Chastang
+2  A: 

I'm using Vim for Clojure and am enjoying it. I installed the Vim Clojure plugin mentioned in the wiki and also followed the instructions there for making the REPL more user friendly using rlwrap.

Drew Olson
+5  A: 

If you go the emacs route, I highly recommend using clojure-paredit. Paredit takes some getting used to, but it really reinforces the "code is data" notion.

+1  A: 

Bill Clementson has updated his setup.

Vagmi Mudumbai
+4  A: 

Emacs Carbon with SLIME and clojure-mode works like a charm. I tried Aquamacs before and it feels too different from the command line emacs for me. I really don't like Terminal.app and after months fighting against it I decided to migrate to Carbon.

Phillip Calçado
+10  A: 

Emacs+SLIME is going to be the most productive if you are going to be spending your time editing Lisp code and not doing much Java.

Paredit is also a must-have since it makes it almost difficult to insert invalid s-expressions. It takes a bit of getting used to, but it is emphatically worth it.

technomancy
+5  A: 

One of the "big 3" Java development IDEs is IntelliJ IDEA. It used to get less market share because it's not free as in beer. JetBrains is now providing a Community Edition of IntelliJ IDEA . I'm not a regular Mac user myself, but the OS X 'I use this' folks say it runs there too.

IDEA has a plugin called La Clojure, available directly from the plugin manager under "Settings," that makes Clojure development pleasant and productive.

Previously, I tried

but anticipate staying with IDEA and La Clojure

Carl Smotricz
+1. Have loved IntelliJ IDEA for ever. Clojure support is great.
z5h
A: 

You may also try IntellliJ IDEA with La Clojure plugin.

Alexey Pegov
This answer is duplicate of http://stackoverflow.com/questions/257333/clojure-editor-ide-recommendations-on-os-x/1699579#1699579
Jonik