unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Eduardo Ochs <eduardoochs@gmail.com>,
	Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Inserting background colour at column
Date: Sat, 03 Dec 2022 06:45:15 +0000	[thread overview]
Message-ID: <ubIz1Qc10JMCXxCfzj26tutvHb1BNViThVuZ3SGi1aiXfKYHqTSWkgfpFtlXHWtyW8QWzyS_CdEZNqPXxWy3kSaUuNJ5ko2sa3eZjMJZeYk=@protonmail.com> (raw)
In-Reply-To: <tS52Xddo5SjFf68elQg9QKHnPQWqzl-tY0y9ala7dhnOPQhc1ZGT6RNSg902dUrbrtJ7N4GstRmj8mdtNmdTxsF4ULmkUBA6udNkaXA5Crw=@protonmail.com>


------- 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	other threads:[~2022-12-03  6:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-03  3:28 Inserting background colour at column Heime
2022-12-03  3:36 ` Heime
2022-12-03  3:46   ` Eduardo Ochs
2022-12-03  3:54     ` Heime
2022-12-03  4:08       ` Eduardo Ochs
2022-12-03  4:23         ` Heime
2022-12-03  6:45           ` Heime [this message]
2022-12-03  7:20   ` Eli Zaretskii
2022-12-03  7:31     ` Heime

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ubIz1Qc10JMCXxCfzj26tutvHb1BNViThVuZ3SGi1aiXfKYHqTSWkgfpFtlXHWtyW8QWzyS_CdEZNqPXxWy3kSaUuNJ5ko2sa3eZjMJZeYk=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=eduardoochs@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).