[TxMt] Language based on path
Hans-Jörg Bibiko
bibiko at eva.mpg.de
Thu Mar 27 07:53:06 UTC 2008
On 27.03.2008, at 03:59, Allan Odgaard wrote:
> On 26 Mar 2008, at 18:41, dvlogic wrote:
>
>> Is there a way to get TextMate to auto pick the file language
>> based on the
>> file path? [...]
>
> No, but more “per folder” settings are planned.
For such things I use the TMTOOLS plugin (http://email.eva.mpg.de/
~bibiko/downloads/textmate/). You can parse the FILEPATH and set
accordingly the language by using
"$TMTOOLS" set grammar '{to=Matlab;}'
Please note : This plug-in is strongly recommend to use for private
scripting only!
--Hans
More information about the textmate
mailing list