Thursday, April 23, 2009

How to get ESS style indentation in textmate

This should be standard in Textmate, I don't know why one has to go through so many steps to get it working:

How to update R bundle in textmate

Got this from the web somewhere:

Just create a script with the following content:


SVN=`which svn`

echo Changing to Bundles directory...
mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles

if [ -d /Library/Application\ Support/TextMate/Bundles/R.tmbundle ]; then
echo R bundle already exists - updating...
$SVN up "R.tmbundle"
echo Checking out R bundle...
$SVN --username anon --password anon co

echo Reloading bundles in TextMate...
osascript -e 'tell app "TextMate" to reload bundles'