From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marc Coquand Newsgroups: gmane.emacs.help Subject: Creating a custom face for a variable shown in global-mode-string? Date: Sun, 24 Nov 2024 13:57:51 +0200 Message-ID: <87a5doetds.fsf@mccd.space> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6652"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 24 12:58:38 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tFBG9-0001b9-GP for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 24 Nov 2024 12:58:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFBFe-0001jm-OV; Sun, 24 Nov 2024 06:58:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFBFa-0001hc-5R for help-gnu-emacs@gnu.org; Sun, 24 Nov 2024 06:58:02 -0500 Original-Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFBFY-000293-1b for help-gnu-emacs@gnu.org; Sun, 24 Nov 2024 06:58:01 -0500 Original-Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.stl.internal (Postfix) with ESMTP id 0C3AE254011D for ; Sun, 24 Nov 2024 06:57:56 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Sun, 24 Nov 2024 06:57:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mccd.space; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1732449475; x=1732535875; bh=X6p//q9D5gVGEHVhfH9NSAUQeRxJBj4u kEF0oWM/pb4=; b=nw8/P5uj5hLMD0ajr3BgHjlha78S0eoyuuPlpxrA9QaHrceS tYfxBoehC6e3VG4WbkDsu+n3pd2YFo2TGtyL5g62BVpZFPcJx8MyUJE0pB5Jo6ls ODYqFGMy1PbtS2DjrN5+wHSE/tEkjbYMTw0zKBI214OUZfideD4cR5GB0NkMTE9h 8GuZPIBQdIr3NOQhHE8kBcqVo/TJolEk283md17NEkZ6XYnMbIXhiXm35tb9wOGu 9ji2uA1LffWUkOVrp1BUMM9j9MeJC6ZrVxB/nVWanFA3cjmqwFM+9f54WbpsGOkq 7Q/BjNSTiLTKW2eoqTGlrV74AqGv/e/5PCa0jg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732449475; x= 1732535875; bh=X6p//q9D5gVGEHVhfH9NSAUQeRxJBj4ukEF0oWM/pb4=; b=v qq8MfofY0Q8kHo2MeVFiqQ8p6h2VrH/+Hjzuyu1Ej5NS7jIedIcAyUeZiVuS1bxi VFRM8C0IavL+ibxFTzpgRBOE54WXTc1wbcd6p0P9IJX8LgtuoOOZVyISxsPtnCoh C5b3tIYaOTbeo+AtodYEuFE1dXFhfY98ZzFmkIC3P+o6DJR8fMSMOJ64X1E9YQiZ FeyGPSKrVa9yKwqU51lBJylB2STzhAtdOSkrr7/Eag4o6GoFeq0Q6RYHm+LK3XtH du6AojRdC4h/v074DHTUiPuUFaLXBXIpbNMYZu9JGSb8Nb6eWWAoPauBPQxqXUJR mbrwIPu1HfHKg9S7764Xw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrgeefgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkf ggtgesthdtredttddttdenucfhrhhomhepofgrrhgtucevohhquhgrnhguuceomhgrrhgt sehmtggtugdrshhprggtvgeqnecuggftrfgrthhtvghrnhepieetffffveefhfevgfehvd ehteejiedvudehledtheeuueeiveeljeelieehgeefnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhgttgesfhgrshhtmhgrihhlrdhfrh dpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohephhgv lhhpqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: ia2d149fd:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 24 Nov 2024 06:57:55 -0500 (EST) Received-SPF: pass client-ip=202.12.124.159; envelope-from=marcc@fastmail.fr; helo=fhigh-b8-smtp.messagingengine.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148374 Archived-At: 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