Am 13.04.2010 um 09:36 schrieb Allan Odgaard:

> On 12 Apr 2010, at 17:40, pinky wrote:
> 
>> I'm using latex a lot in math mode and it would be great if the bundle 
>> command for Bold and some other could differ between text mode and math 
>> mode. In text mode it should still write \textbf{} but in math mode 
>> \mathbf{}. Is there a flag for the mode I can check?
> 
> Duplicate the existing snippet for bold, change its text accordingly and set 
> the scope selector to string.other.math.block.tex then it will override it in 
> math mode.

Bold is a command and its scope selector text.tex.latex seems to overrule 
string.other.math.block.tex if I simple duplicate the command and rewrite it 
according your instructions. My aim is not to use different key equivalents 
depending on the command. 
_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/listinfo/textmate-dev

Reply via email to