[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 09:44:43 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
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...
Bye,
Tassilo
- [AUCTeX] Fontifying macro arguments..., Robert Goldman, 2013/02/20
- Re: [AUCTeX] Fontifying macro arguments...,
Tassilo Horn <=
- Re: [AUCTeX] Fontifying macro arguments..., David Kastrup, 2013/02/22
- Re: [AUCTeX] Fontifying macro arguments..., Tassilo Horn, 2013/02/22
- Re: [AUCTeX] Fontifying macro arguments..., David Kastrup, 2013/02/22
- Re: [AUCTeX] Fontifying macro arguments..., Tassilo Horn, 2013/02/22
- Re: [AUCTeX] Fontifying macro arguments..., Robert Goldman, 2013/02/22
- Re: [AUCTeX] Fontifying macro arguments..., Tassilo Horn, 2013/02/24
Re: [AUCTeX] Fontifying macro arguments..., Joost Kremers, 2013/02/22