Hi,
I find this essential too, I achieve it using simple preferences items in the bundle editor.
E.g. for python I create a "tabs" preferences item and add the following:
{ softTabs = "1"; tabSize = "4"; }
I also set the scope to "source.python" to ensure it only gets used for python. I have custom settings like this for many of my filetypes (e.g. 2 spaces for xml).
Hope this covers what you want.
cheers, mick
On 8/15/05, Shanti Braford shantibraford@gmail.com wrote:
Hey all,
I was wondering if there was a way to setup different file types to use the "Tab -> space" conversion feature, and others... not.
I.e. for Ruby on Rails code (.rb and possibly .rhtml), I'd like to have Tabs automatically get converted to spaces.
But for .txt files and other file types where I would like to keep tabs... is there a way to do this somehow?
Just finally registered my copy of TextMate... and, knowing how incredibly versatile it is, I'm just figuring there's got to be a way to pull this off somehow (w/o making it a new feature, which, imho would be nice too!) =)
Shanti ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate