all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Creating a custom face for a variable shown in global-mode-string?
@ 2024-11-24 11:57 Marc Coquand
  2024-11-25 22:56 ` Michael Heerdegen
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Coquand @ 2024-11-24 11:57 UTC (permalink / raw)
  To: help-gnu-emacs


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-26  7:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.