auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Fontifying macro arguments...


From: David Kastrup
Subject: Re: [AUCTeX] Fontifying macro arguments...
Date: Fri, 22 Feb 2013 09:49:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Tassilo Horn <address@hidden> writes:

> Robert Goldman <address@hidden> writes:
>
> Hi Robert,
>
>> I would like to be able to change the face used to display the
>> ARGUMENT to a latex macro.
>>
>> In particular, we commonly use \hide{} to wrap old text that we are
>> not formatting.  This is less cumbersome than the % line comments, but
>> it's hard to tell if large blocks of text are active or not.  So I
>> would like to gray it out by assigning it a face like "shadow."
>>
>> I thought that font-latex-user-keyword-classes would let me do this,
>> but it seems like it sets the face for the keyword itself, rather than
>> the arguments.
>
> Hm, no, according to the docs it sets the face for the macro arguments
> if the macro type is command.  So basically this should do the trick:
>
> (setq font-latex-user-keyword-classes
>       '(("shadow-hidden" (("hide" "{")) 'shadow command)))
>
> However, it doesn't work for me.  Not sure what's wrong...

Double-quoting shadow?  You quote the whole list, and then quote shadow
again?

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]