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: Heime
Subject: Re: Inserting background colour at column
Date: Sat, 03 Dec 2022 06:45:15 +0000

------- Original Message -------
On Saturday, December 3rd, 2022 at 4:23 AM, Heime <heimeborgia@protonmail.com> 
wrote:


> 
> 
> 
> 
> 
> Sent with Proton Mail secure email.
> 
> 
> ------- Original Message -------
> On Saturday, December 3rd, 2022 at 4:08 AM, Eduardo Ochs 
> eduardoochs@gmail.com wrote:
> 
> 
> 
> > On Sat, 3 Dec 2022 at 00:54, Heime heimeborgia@protonmail.com wrote:
> > 
> > > I have also tried this one
> > > 
> > > (insert (format
> > > (propertize "%s"
> > > 'face '(:foreground "green" :background "blue"))) "T")
> > 
> > Try to run this in a shell,
> > 
> > cat > /tmp/foo <<'%%%'
> > 
> > (insert (propertize "T" 'face '(:foreground "green" :background "blue")))
> > %%%
> > emacs -Q /tmp/foo
> > 
> > and then execute the (insert ...) with C-e C-x C-e.
> > [[]], Eduardo
> 
> 
> That works good.

Managed to get things working with 

(insert (propertize "B"
             'font-lock-face '(:background "blue"
                               :foreground "red")))



reply via email to

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