From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qKIhET37B2ZDAgEAqHPOHw:P1 (envelope-from ) for ; Sat, 30 Mar 2024 12:45:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id qKIhET37B2ZDAgEAqHPOHw (envelope-from ) for ; Sat, 30 Mar 2024 12:45:01 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Z9TG7NRX; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711799101; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=q2nl1iobdnH8CnkSu/l48SOpQXBacsFYKRp+VsgU2wc=; b=N5imAQMzjdV8sTTI+exYcZ3WuDch3XaY/rnqFxQx03Lv/S7fmSIvIKMFOQiQoknjemMv22 b/avKjzEAdvonH1fJsv3EfubUiOkneQERCN5FeXfWw7rGgx2w9oLn2gS4g0txiilrWM2tU bQ4z5v2F7ag53Ub/Xshzhh+OVBsg2p8Jo3iEYEN1nScUNlgN8mU5/dMGr9Kdg6HH8rN/N0 SveTj71X/1uUtvIeuxTEYNbQqRquT7Or/GsoBznrLVREh5Q62vvCfXlB7328bdVIrEoK7z DCexSOCaDKcpSC7qQhhFxejTSn/q9a6+E7HZOOTsobvK1At+Ed3doFdpf2l1gQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Z9TG7NRX; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711799101; a=rsa-sha256; cv=none; b=Tj5aPwVyiJvNVp2YhfsbUuWyYycwXZXkBR1B686P8MSCU1mSQdNSPpl7viQkkaLS6t/O50 hOJBaFPq5FeY5oWZu7iDRp5f0mfkyoTxf8FORlSVJHUXPumYQb7rrEXcEZWdkQdaNH9CCn kBnC5udt4TFhU3KzvRs3Y191nAiEVEZ7KfB7ZHUrrcoTjOWQc67Gp/pPrn6u5VsoaFQf3I oXWlS843JiGBbStCpW4IlYUV/FfICXxZiNpvuk2kuwkmHv9NkY17wjc3tMLSR+wmB6XJHK UtAfcA29PEgqOdkjupOcrsZWHDfL5+lveX6W5uPWhoSbj3p17IIB5n6OMfgu+Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1EB096A269 for ; Sat, 30 Mar 2024 12:45:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqX7u-0003km-Bc; Sat, 30 Mar 2024 07:43:58 -0400 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 1rqX7r-0003kT-55 for emacs-orgmode@gnu.org; Sat, 30 Mar 2024 07:43:55 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqX7o-0006c9-PL for emacs-orgmode@gnu.org; Sat, 30 Mar 2024 07:43:54 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B1E76240027 for ; Sat, 30 Mar 2024 12:43:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711799030; bh=mSfSe1OAqiVdCx9rQYPPFLzUo4Es2sur4Rukm6jk6GM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=Z9TG7NRXYNdpGkZqTPgJEyW2TV7rCGh3igZY6AMVrXw3WStOqFAeByJxK12U6B2vU 5Fz1ZT74RVtLfQkoHgYH/zHr032gGwY5b2J0Ff9GunFgtJDhex4mWULeZxg5nb8MWz +LIFpAuIIfuwEKQ2QfB73NI/kFs8cDbzrDrWjftgzldV9/uBDB7qS3kAi+tgNZtLvR aWlaBYR65tmIncmHn1O0SrBrqKcFQupOc0tkDaZ/4ykXVR1x8/AuJHDkNf1eNWFLyV 5DpBjtzCSvhKsnbSW45UWKWhFhhWj//ZtX60zkBcccZDFpnlYpXwQTFt2A5l6BJumr xYxJANPd7PKUw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V6Fm54Xxvz6twV; Sat, 30 Mar 2024 12:43:49 +0100 (CET) From: Ihor Radchenko To: Kepa Cc: emacs-orgmode@gnu.org Subject: Re: I can't make a custom face to take effect In-Reply-To: <171179841468.7.17160523106114869383.297490625@slmails.com> References: <171179841468.7.17160523106114869383.297490625@slmails.com> Date: Sat, 30 Mar 2024 11:43:59 +0000 Message-ID: <87a5mg0wsg.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 1EB096A269 X-Spam-Score: -7.97 X-Migadu-Spam-Score: -7.97 X-Migadu-Scanner: mx10.migadu.com X-TUID: aexHnbUsHak0 Kepa writes: > I have added a custom face, but it doesn't work unless I do "M-x=20 > org-mode-restart". > > The custom face: > > (defun yant/apply-custom-faces () > =C2=A0 (add-to-list 'org-font-lock-extra-keywords=20 > '("(\\([^)]*?[A-Z]+[^)]+?[0-9]\\{3,4\\}[^)]*\\))" . (0 'shadow prepend))= =20 > 'append)) > > (add-hook 'org-font-lock-set-keywords-hook #'yant/apply-custom-faces) > > I have tried saving the desktop manually, but it doesn't take effect, I=20 > have to reload org-mode each session. I suspect that the part of your config defining the hook is loaded too late. Try to reproduce the problem starting from emacs -Q, as described in https://orgmode.org/manual/Feedback.html#Feedback --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at