From: Marc Coquand <marc@mccd.space>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Creating a custom face for a variable shown in global-mode-string?
Date: Tue, 26 Nov 2024 09:09:29 +0200 [thread overview]
Message-ID: <87o72279p2.fsf@mccd.space> (raw)
In-Reply-To: <874j3u7wj4.fsf@web.de> (message from Michael Heerdegen on Mon, 25 Nov 2024 23:56:15 +0100)
I was trying to figure out how to do both but couldn't find it in the
emacs manual.
Thanks for the pointers, I'll have a look!
--
Marc
On Mon, Nov 25 2024, Michael Heerdegen wrote:
> 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.
prev parent reply other threads:[~2024-11-26 7:09 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
2024-11-26 7:09 ` Marc Coquand [this message]
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=87o72279p2.fsf@mccd.space \
--to=marc@mccd.space \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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).