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

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

Re: Inserting background colour at column


From: Eli Zaretskii
Subject: Re: Inserting background colour at column
Date: Sat, 03 Dec 2022 09:20:23 +0200

> Date: Sat, 03 Dec 2022 03:36:27 +0000
> From: Heime <heimeborgia@protonmail.com>
> Cc: Heime via Users list for the GNU Emacs text editor 
> <help-gnu-emacs@gnu.org>
> The following did not colourise the letter "T".
>  
> (insert (propertize "T" 'face '(:foreground "green" :background "blue")))

You cannot add faces in a buffer with font-lock-mode turned on, because
font-lock wants to control all faces.  Use 'font-lock-face' instead of
'face' in that case.



reply via email to

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