From: Michael Heerdegen <michael_heerdegen@web.de>
To: Marc Coquand <marc@mccd.space>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Creating a custom face for a variable shown in global-mode-string?
Date: Mon, 25 Nov 2024 23:56:15 +0100 [thread overview]
Message-ID: <874j3u7wj4.fsf@web.de> (raw)
In-Reply-To: <87a5doetds.fsf@mccd.space> (Marc Coquand's message of "Sun, 24 Nov 2024 13:57:51 +0200")
Marc Coquand <marc@mccd.space> writes:
> (push '(ctrl-lock-state " [CTRL] " "") global-mode-string)
> [...]
> Is there a way to change the color of it, so it is shown in a red and
> bold color?
Is the question about how to create a face, or how to attach it?
I assume you ask about the latter: please look at
(info "(elisp) Properties in Mode")
in the GNU Emacs Lisp Reference Manual then. You will probably want to
use a :propertize construct specifying a 'face' text property.
Michael.
next prev parent reply other threads:[~2024-11-25 22:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-24 11:57 Creating a custom face for a variable shown in global-mode-string? Marc Coquand
2024-11-25 22:56 ` Michael Heerdegen [this message]
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=874j3u7wj4.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=marc@mccd.space \
/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).