[Top][All Lists]

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

Re: [AUCTeX] Fontifying macro arguments...

From: Tassilo Horn
Subject: Re: [AUCTeX] Fontifying macro arguments...
Date: Fri, 22 Feb 2013 13:54:03 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

David Kastrup <address@hidden> writes:

>>>> (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?
>> I took the definition of `font-latex-built-in-keyword-classes' as a
>> reference, and there the face is quoted again, too.
> Huh.  Maybe there is another eval level involved.

Seems so, but that's actually different in the user keyword classes.
Now I use this to shadow arguments of the comment macros I use.

(setq font-latex-user-keyword-classes
      '(("shadow-hidden"    (("hide" "{"))      shadow command)
        ("shadow-mycomment" (("mycomment" "{")) shadow command)
        ("shadow-comment"   (("comment" "{"))   shadow command)))

It works just fine, but *you have to restart emacs to make it work*.
When I posted my last messages, I've just reverted the buffer or toggled
`font-lock-mode' off and on again.

BTW, using `M-x customize-option RET font-latex-user-keyword-classes' is
actually the easiest way to go to get the syntax right.


reply via email to

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