auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] font-latex-user-keyword-classes doesn't work


From: Ralf Angeli
Subject: Re: [AUCTeX] font-latex-user-keyword-classes doesn't work
Date: Wed, 14 Apr 2010 15:54:09 +0200

* micheal S. (2010-04-13) writes:

>> If you really want to highlight a command without arguments, like \foo,
>> (in contrast to one with arguments, like \bar{baz}), then you can
>> specify an existing face instead of setting face properties in the
>> customization interface.
>
> I think I don't understand how to do this.

In the customization buffer of `font-latex-user-keyword-classes' you can
find a button labeled "Value Menu" in front of the "Face attributes"
section of a keyword class.  If you left-click on that and select "Face
name", a text field will be displayed where you can type in the name of
a face.

>> In your setting you already use the name of
>> such a face but as the name of a font family which will not work.
>>
> Can you give me a few examples of what I could put into the "Font-Family" 
> field?

It will likely accept some or all of the formats described in
(info "(emacs)Font X").  I haven't tried this, though.

> By the way: Is it possible to apply changes to the font latex user
> keyword classes without restarting emacs? Why is it not enough to
> execute eval-buffer on the .emacs file?

>From the description of the variable:

,----[ C-h v font-latex-user-keyword-classes <RET> ]
|    Setting this variable directly does not take effect;
|    use M-x customize or restart Emacs.
`----

You will probably also have to reload the file where instances of the
stuff you want to have fontified occur.

-- 
Ralf




reply via email to

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