help-gnu-emacs
[Top][All Lists]
Advanced

[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: Marc Coquand
Subject: Re: Creating a custom face for a variable shown in global-mode-string?
Date: Tue, 26 Nov 2024 09:09:29 +0200

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]