2
votes

Can anyone assist with the TextMate Run command? I am not sure how to set the variable and its value in the TextMate in order to Run command + R and get the result of CoffeScript file. Many thanks.

2

2 Answers

4
votes

After you install the tmbundle, as described in the first answer, in Preference Panel, select the Advanced tab and under TM_PATH add the path to coffee. To find out the path, type:

which coffee

at the command line.

If you installed using Homebrew, you'll get something like this for your path:

/usr/bin:/bin:/Users/me/local/node/bin:/usr/sbin:/sbin:/usr/local/bin

The /usr/local/bin part is where coffee is located.

1
votes

Install the CoffeeScript bundle:

https://github.com/jashkenas/coffee-script-tmbundle

This will give you syntax highlighting and a lot more, including compilation.