TextMate で Clojure のコードを書きたい
Clojure のバンドルもきっとあるだろーと考えて探してみたら、いくつかありました。
ここの clojure-tmbundle を入れてみた。
http://github.com/kek/clojure-tmbundle
cd ~/Library/Application\ Support/TextMate/Bundles/
git clone git://github.com/kek/clojure-tmbundle.git Clojure.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'
このバンドルはバンドル内に Clojure の実行環境を持つらしい。
以下のコマンドを打つと Clojure 本体と clojure-contrib ライブラリを github から取ってきてビルドしてくれる。
./Clojure.tmbundle/Vendor/clj-update-and-build
・・・はずなんだけど clojure-contrib のビルドの時に build.xml が無いと怒られてしまう。
この問題の解決方法が以下のページに書いてありました。(tumblrだけど、元の記事はどこにあるのだろう。見つからなかった)
http://mynameisanler.tumblr.com/post/795157125/setting-up-clojure-in-textmate
ページに書かれている手順にコマンドを打って、いくつかのファイルを書き変えたら、 TextMate で開いている Clojure のコードを一発で動かせるようになりました。
すばらしい。