Easy setup for Clojure on Mac OS X Leopard

24 08 2009

Clojure definitely is one of the hottest new programming languages around and just recently hit a very important milestone. Setting up a nice Clojure development environment on OS X still can be a bit of a pain though, which can be seen by the number of HOWTOs and installation notes floating around on the web. I therefore decided to expand one of those into ClojureX, which I believe is the easiest way to get up to speed with Clojure development on Leopard.

ClojureX can


  • download and build the source code for Clojure, clojure-contrib and JLine (a readline like library for Java)
  • download editor support packages for TextMate and Emacs
  • create a symlink for the Clojure startup script in /usr/local/bin
  • install support for TextMate via the clojure-tmbundle
  • configure Emacs to use clojure-mode, Slime and swank-clojure
  • keep your Clojure installation up to date via a simple “git submodule update && ant”

I hope this will come in handy for other people interested in trying out Clojure on Mac OS X, if you have any feedback please post it in the comment section.


A TextMate command for the RubyLearning forums

10 05 2009

As we all know posting code to Moodle (the software that powers RubyLearning) can be a bit cumbersome. I therefore created a TextMate command which will

  • take the currently active file
  • replace all occurrences of < with the HTML-entity
  • wrap all of that in [code ruby] tags and
  • copy it to the clipboard, ready to be pasted into the forums.

Source:

Download:
RubyLearning.tmCommand