David Kastrup <[email protected]> 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.

Bye,
Tassilo

_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to