help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to find current font-lock settings of a buffer?


From: Geralt
Subject: Re: How to find current font-lock settings of a buffer?
Date: Sun, 8 Feb 2009 20:38:43 +0100

On Sun, Feb 8, 2009 at 7:34 PM, Drew Adams <address@hidden> wrote:
>> >> how can I see the current font-lock settings of a buffer?
>> >
>> > M-x describe-face RET on character of that face. In GNU Emacs 23 C-u
>> > C-x = works similarly.
>>
>> That displays only the face used for that character.  The real
>> font-lock settings are in the variable font-lock-keywords (which
>> you normally don't set explicitly).
>> See (info "(elisp)Font Lock Mode") for details.
>
> Yes, but looking at the value of `font-lock-keywords' is likely to puzzle more
> than clarify ... unless you marry that with the face appearances using
> `list-faces-display'.
>
> IOW, `C-h v font-lock-keywords' will show you which faces are used by Font 
> Lock
> mode in the current buffer. Then `M-x list-faces-display' will show you what
> they (and other faces actually look like).
>
>
>
>

Thanks, I'll try that.




reply via email to

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