emacs-devel
[Top][All Lists]
Advanced

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

Re: set-text-properties and jit-lock-mode


From: Alan Schmitt
Subject: Re: set-text-properties and jit-lock-mode
Date: Mon, 22 Feb 2016 10:02:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

On 2016-02-22 09:51, Anders Lindgren <address@hidden> writes:

>     Is there a way to change the face that plays well with font-lock? I
>     tried `font-lock-append-text-property' but it did not work.
>
> You can set the text property `font-lock-face' instead of `face'. When
> `font-lock' is activated, it sets up this as a low-level alias to `face' but
> after that doesn't touch it. Effectively, it allows face properties defined by
> normal code and by font-lock to live side by side in the same buffer.

It works great, thanks a lot. I think I now see how to get around the
ledger-mode bug.

Thanks again,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-01, Mauna Loa Obs.): 402.52

Attachment: signature.asc
Description: PGP signature


reply via email to

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