[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inserting background colour at column
From: |
Heime |
Subject: |
Re: Inserting background colour at column |
Date: |
Sat, 03 Dec 2022 03:54:19 +0000 |
Sent with Proton Mail secure email.
------- Original Message -------
On Saturday, December 3rd, 2022 at 3:46 AM, Eduardo Ochs
<eduardoochs@gmail.com> wrote:
> On Sat, 3 Dec 2022 at 00:37, Heime heimeborgia@protonmail.com wrote:
>
> > The following did not colourise the letter "T".
> >
> > (insert (propertize "T" 'face '(:foreground "green" :background "blue")))
>
>
> This
>
> (insert (propertize "T" 'face '(:foreground "green" :background "blue")))
>
> works in fundamental mode for me. Did you try it in fundamental mode?
I have also tried this one
(insert (format
(propertize "%s"
'face '(:foreground "green" :background "blue"))) "T")
> Jean Louis was discussing something similar to that here on the list a
> few weeks ago, and I sent this detailed answer to him:
>
> https://lists.gnu.org/archive/html/help-gnu-emacs/2022-11/msg00368.html
>
> Look at the last lines of my message...
>
> In emacs-lisp-mode the "Hello" had this among its text properties,
>
> (face font-lock-comment-face)
>
> and this took precedence over the face from the category.
>
> Does that help?
> Cheers,
> Eduardo Ochs
> http://angg.twu.net/eepitch.html
Re: Inserting background colour at column, Eli Zaretskii, 2022/12/03