[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating a custom face for a variable shown in global-mode-string?
From: |
Michael Heerdegen |
Subject: |
Re: Creating a custom face for a variable shown in global-mode-string? |
Date: |
Mon, 25 Nov 2024 23:56:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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.