49

I'm looking for an editor or an IDE for my Clojure coding and I found this thread:
Clojure editor/IDE recommendations on Mac OS X

However I have a couple of questions:
Which IDE offers the best Clojure environment (right now): IntelliJ, Eclipse or NetBeans?
What are the advantages of Aquamacs (I read Rick is using it) over the previous heavy-weight IDEs?

3

14 Answers 14

73

I have spent significant chunks of time (on a Mac) with:

  • Textmate w/ Clojure bundle
  • Netbeans Enclojure
  • Eclipse CCW
  • Emacs.app (not Aquamacs)

My opinions on those:

Textmate - was a great way to get started and is obviously a very functional text editing environment. At some point I wanted better REPL integration.

NetBeans - not wanting to learn Emacs, I switched to NetBeans. The NetBeans editor is ok. I found the integration with build tooling for things like Maven was rocky. The NetBeans remote repl is very very good.

Emacs - I eventually bit the bullet and learned Emacs. Editing with paredit is truly god-like. REPL integration is glorious as you'd expect. clojure-test-mode is very handy. But it's Emacs with all its pros and cons. If you're going to use Emacs on the mac, I'd recommend using Emacs.app, not Aquamacs. Aquamacs does not follow standard gnu emacs conventions and you'll find it harder to create a portable environment or use other people's extensions. Right now, I use Emacs for day-to-day editing and my normal work environment.

Eclipse - The Eclipse editor is coming along and the structural editing has some of the niceties of paredit (but not the truly essential slurp, barf, splice capability). The Eclipse repl is just a stock command-line repl and is pretty bad in comparison to NetBeans. However, the NetBeans remote repl has been broken out into an independent project and is coming very soon to Eclipse which will make Eclipse even more attractive. Maven integration is very good. I use Eclipse now when I want to see lots of files and projects at once, which I have a hard time doing in Emacs.

At the moment, my bet is that the Eclipse tooling will start to pull away from the others. But I'm still hoping for a Clojure-specific IDE to show up. :)

UPDATE Mar 10, 2014:

The world has changed a lot since I first wrote this. There are now at least 6 very good Clojure environments.

If you have not allegiance to a pre-existing editor and want an easy place to start, there are two great choices:

1) Nightcode - everything you basically need to write and run Clojure in a new editor written in Clojure itself. Really easy to set up and just get going.

2) Light Table - LT is written in ClojureScript but I'd say has more ambitious goals to change the way we write code, making it more interactive and our data more visible. Very active plugin scene.

If you are a Java programmer coming from the world of IDEs or feel like the support of a an IDE might be useful to you, then check out:

3) IntelliJ Cursive - this reboot of the IntelliJ Clojure environment is rapidly winning converts. Great set of tooling for Clojure and its getting even better rapidly.

4) Eclipse Counterclockwise - CCW has been in work for years and continues to file down the getting started and ease of use rough edges. If you're an Eclipse user already, you'll feel right at home.

If you are a keyboard hacker, both of these have excellent environments:

5) Emacs with CIDER - Emacs is more a way of life than an editor and for a long time was the only editor that could handle professional level needs for Clojure. If you don't already know Emacs, it is tough to learn both Emacs and Clojure at the same time. The "all in one" environments I've seen recommended most are Prelude and Emacs Live.

6) Vim with Fireplace - Vim has been through a couple phases but Fireplace is where it's at - lots of people are successful with it.

5
  • Thanks for the great answer. personally I wish if TextMate has a much better bundle for Clojure coding.
    – Chiron
    Nov 22, 2010 at 18:31
  • I do not think that I will use Emacs forever but I have to say (from the other side) that I am glad that I invested the time to learn Emacs, if only to understand the pathos and pair with my Emacs-wielding brethren. Nov 24, 2010 at 4:50
  • +1 for a great answer. Note that the Eclipse REPL now uses the much superior nREPL (as of counterclockwise 2.0)
    – mikera
    Apr 3, 2011 at 16:48
  • How about IntelliJ Idea (free edition) + this plugin?
    – 9000
    Aug 29, 2013 at 8:50
  • Unfortunately Enclojure now appears to be a dead project. Too bad. I liked it, but they never could seem to keep the plugin up to date with the latest NetBeans version. Wish I had the spare time to join that project... Apr 26, 2016 at 11:59
10

I have used both vim, emacs, and Intellij. Of the three I'm most productive in emacs.

Before writing Clojure I had been using vim for four years (and before that emacs for three) and considered myself among the best of the other developers I knew with regards to efficiency in vim. As a result I started out using it for Clojure. I found it to be painful. I was using vimclojure and only vimclojure. About a month after I switched to emacs I stumbled across this post. Had I read that before switching to emacs I could see myself enjoying that setup.

I've since switched to emacs and completely believe the learning curve is worth it but it isn't for everyone.

2
  • vim-fireplace is an outstanding addition to clojure programming in vim. You may wanna revisit. It has autocompletion, code navigation, macro operations and a repl(quasi).
    – FUD
    Nov 21, 2013 at 15:10
  • Your "this" link no longer links to a specific article about emacs or clojure. Sep 2, 2016 at 18:34
4

I quite like jEdit which is a fairly general purpose programmer's text editor. It has syntax highlighting and a Clojure REPL available as a plugin.

4

I use MacVim with VimClojure and am happy with it. But I'm kind of biased...

3

I've been recommended:

3

Developing in Clojure goes very well with Emacs if you add some packages. I could recommend you some of these repositories:

https://github.com/bendisposto/emacs.d

Or if you have a german keyboard layout on your Mac you can use my configuration:

https://github.com/n2o/emacs.d

Copy the repo into your ~/.emacs.d folder and start emacs. It will first download and initialize the plugins and then you have a ready-for-clojure-configuration for emacs.

To start the REPL, just use:

M-x cider-jack-in

Those configurations from the repositories are all from this gist:

https://gist.github.com/rkneufeld/5126926

There you can see most of the keyboard shortcuts.

3

Sublime Text with Paredit and SublimeREPL is a quite a good option.

Sublime Text is a powerful and light weight editor. It enjoys a big umbrella of plugins.

2

Agree with Alex. I have tried NetBeans,Emacs, Textmate and Eclipse on OSX. For now, Eclipse is a better choice. BTW, it also depends on your background. If you are a Java programmer Eclipse is a very good choice. Sometimes, I use the REPL - for example to try out Clojure 1.3 Alpha3. We do need a Clojure-specific IDE; something like Komodo.

1

There is a new Clojure plugin for Intellij called Cursive.

Unfortunately, it looks like La Clojure and Leiningen plugins are no longer supported and do not run well on Intellij 12 and 13.

2
  • 1
    I feel that JetBrains is going to buy CursiveClojure in the future.
    – Chiron
    Apr 22, 2014 at 16:02
  • I said: "I feel". So it is not a fact! :)
    – Chiron
    Apr 22, 2014 at 16:09
1

According to book "Clojure for the Brave and True" the best editor for clojure is emacs. Make sure you can get emacs.app for mac.

According to the writer:
"The reason I recommend Emacs is that it offers tight integration with a Clojure REPL, which allows you to instantly try out your code as you write. That kind of tight feedback loop will be useful while learning Clojure and, later, when writing real Clojure programs. Emacs is also great for working with any Lisp dialect; in fact, Emacs is written in a Lisp dialect called Emacs Lisp (elisp)." http://www.braveclojure.com/basic-emacs/

0

Eclipse is best it's plugins are simply well integrated. I would recommend Nightcode on the side only because it was written in Clojure. I wouldn't touch Emacs with a fifty foot pole, I'm just not that hardcore.

0

VS Code does it for me on Linux platform. Looked at Light Table and pretty much similar to VS Code - built off the same engine, I believe. Go with an IDE that is closest with what you are already familiar with would be my take on this. If you are used to JetBrains IDE then Cursive - watch the License terms though.

0

I would also suggest looking at another IntelliJ Idea plugin "Clojure-Kit". It is younger than "Cursive Clojure" but might already provide all features you need.

It is already in JetBrains's plugin repository. Or you may build it from sources (see https://github.com/gregsh/Clojure-Kit)

0

Atom also has very good Clojure support. You can find more details on how to set it up for Clojure here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.