[TxMt] Can a command set the language for a new document?

Allan Odgaard throw-away-1 at macromates.com
Tue Apr 24 18:43:41 UTC 2007


On 24. Apr 2007, at 19:54, Daryl Spitzer wrote:

> [...] It would be nice if my command would set the language of the  
> new document created to "Twiki".  How do I do
> that?

This is only possible if a) the first line of the new document  
matches the firstLineMatch of the language grammar or b) the new  
document has an extension (associated to the language).




More information about the textmate mailing list