From: Marc Coquand <marc@mccd.space>
To: help-gnu-emacs@gnu.org
Subject: Creating a custom face for a variable shown in global-mode-string?
Date: Sun, 24 Nov 2024 13:57:51 +0200 [thread overview]
Message-ID: <87a5doetds.fsf@mccd.space> (raw)
I have a indicator I've created which shows if my custom ctrl-lock
should be shown, the state is stored in a variable ctrl-lock-state, I'd
like to turn it red.
I've added the variable to my global-mode-string the following way:
(push '(ctrl-lock-state " [CTRL] " "") global-mode-string)
And it shows up without any issues.
Is there a way to change the color of it, so it is shown in a red and
bold color?
Thanks in advance.
--
Marc
next reply other threads:[~2024-11-24 11:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-24 11:57 Marc Coquand [this message]
2024-11-25 22:56 ` Creating a custom face for a variable shown in global-mode-string? Michael Heerdegen
2024-11-26 7:09 ` Marc Coquand
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=87a5doetds.fsf@mccd.space \
--to=marc@mccd.space \
--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).