From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id IBoMN4kECGbjNQEAqHPOHw:P1 (envelope-from ) for ; Sat, 30 Mar 2024 13:24:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id IBoMN4kECGbjNQEAqHPOHw (envelope-from ) for ; Sat, 30 Mar 2024 13:24:42 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=K26I6gSs; 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=quarantine) header.from=slmails.com; arc=pass ("simplelogin.co:s=arc-20230626:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711801481; 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=80+MEmHkIIUqZrDJtZtCOXCwUCFIVrnYz9ds8KYS+wI=; b=f1/uCLdZKWpvpDGmcP2xlW5K99dP64JiJijTVAm2TEmXX4utDCDZk5KxVdZCkvTrl/2atU Qg9gWCNIP13xI4x3E1MRBostiJnJQ6+bg2umSvwfn/PxbDzo1UYhvN8H5kSkQtNUA4GE6w 5MCLGaR2KxEVFBIDXG5oWm8pOMfWpMkOrATkxwbmEbaKHOR4vD/3tQd3JRsfO0/I+VDr7X OYRG+pgLPnzQQ8hPrRkUs88Y4wNkEik9jPTGw4Tc1m7wb4sH7B0TnEa9xe5kj5W0256QY+ zZ5vHJWJnSdqaY30ITed5Kh28QfzjehpBh1JxqX+zgF4DUPo5OiSLKMJNGrfZQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=K26I6gSs; 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=quarantine) header.from=slmails.com; arc=pass ("simplelogin.co:s=arc-20230626:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1711801481; a=rsa-sha256; cv=pass; b=MwgyacZ8A+sPWhMNYTX1Gn09RW2y9Yzz8hI4ESRaa88zQQIqeV4Jx0YllGb7x7Qtqg8kfm jGXnT9mdnt+RTlxn8qbeK07qceqHuyB+HAxCJENuuTCt0wZrwVH6gAqkpVNfhPS8NsapLX OFHSsDMqpwPfj+RCn1fo0BsdGY7hrRWRcepyxNnvKI3wUj5hGh+e4g4cvb6IQPaVoQo7i8 o0yf4cZyYx4dmyinU8a52FMolWod9ZO9qUqEiZpfSBkPgpik+W0dytsC9EqPZwFmgYKbJi hEg7Bwd19JI7pdJnnKJnbJrU5h9sG44+cC0D3NMIRPXqr+GAxnJK5UQChugoNg== 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 A58E470A27 for ; Sat, 30 Mar 2024 13:24:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqXkY-0001y8-UD; Sat, 30 Mar 2024 08:23:54 -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 1rqXkW-0001xi-Kn for emacs-orgmode@gnu.org; Sat, 30 Mar 2024 08:23:52 -0400 Received: from mail-200162.simplelogin.co ([176.119.200.162]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqXkU-0005jm-QC for emacs-orgmode@gnu.org; Sat, 30 Mar 2024 08:23:52 -0400 ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1711800916; cv=none; b=tscSJCK+bogHQd+O6+iJ48Tx5G9J68ukEmkAfj4DylrcIlNCIlZseuU8JifOQOvzK5+w7LTyUXXNI5lQhSqSW9TOGh5IIRfT3HEMcozMbnfMSmcKEVLnsEqgqCcr/lotAmgmImFgJnU2meyxJyP2ZY9BRgUXgoHnKalXKrzHxKLtSptkmEam2HmxQGCZBpwQbdlWEdY+7TC4Mfa7ksMTuCGGOeNoqeaClTmxAFu6ZW5YOE4XxcMCRDF5OXUUWItVDb8fUX58R1dqvh7hOZazQba9DgIqFrWA13TLxMEl+7MO/uCnwDLDTEvF4LcpsO8QFCJkDzeVXvUEKRtaS5vQbA== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1711800916; c=relaxed/simple; bh=rgg2TqI/GRvNa7LeFsljGWVfIH9gKcSGLbKEe1iSHVI=; h=Date:Subject:In-Reply-To:From:To:Cc:References; b=Yhb+SUG78XIe+mC1vvSyIKWXmTsnpaLFz8mdrNfXKQDIy2ZWheSuFifRPcwVUl1Jd/zpACFlkckrAhAaGnEFgvJeq6ls1u7UnvpNgXRNstHYYu4rSmidgWKPa1A8KtFCf9oScKy1r2j7JTwekrUWk3EXiN8tzmENanjuaFCzdbw53uG1gwYezqFvatHjDnt3DUD5LH4BZKU+usVFrWMiz1BUGtBNY4S07QHZzjTyvQrLzmPiU3kKi4F2Hb+CoJTa6VAK7XAH8NTe2fTOvB6g5SYAsmzdBDso/8EHRCl1J5Tyl/vbcQojzbP58uhHb9tV4eyZEbueyGb5XaDNiL9W1g== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slmails.com; s=dkim; t=1711800916; h=from:from: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; bh=80+MEmHkIIUqZrDJtZtCOXCwUCFIVrnYz9ds8KYS+wI=; b=K26I6gSsOxH4wT7L7cJZkMqov2m9w2WbdsCYP2XI8I+LeSLF2VpZ33lPlN1lPn0/1xtOFH NkZqWDU599ZNsz6n+jP++CsDE2R+KGkyE5V1VHcWrzk/5PhyZseWTGeWfhFtjQZDyqiNON TKbvJQW7dPqUsSrO9zm6EAogteFda3Q= Content-Type: multipart/alternative; boundary="------------v0Gz60mGxOwSTcR9db0IDeyl" Date: Sat, 30 Mar 2024 13:15:09 +0100 Subject: Re: I can't make a custom face to take effect In-Reply-To: <87a5mg0wsg.fsf@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Kepa To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Message-ID: <171180091582.7.15421891331458324501.297511397@slmails.com> References: <171179841468.7.17160523106114869383.297490625@slmails.com> <87a5mg0wsg.fsf@localhost> X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 297511396 X-SimpleLogin-Want-Signing: yes Received-SPF: pass client-ip=176.119.200.162; envelope-from=sl.lmysyibshe3tkmjrgm4tmlbageytqmbqhe2v2.7smr5b7bho33e@slmails.com; helo=mail-200162.simplelogin.co X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-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: A58E470A27 X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -6.32 X-Spam-Score: -6.32 X-TUID: dpRssfTS9TmZ --------------v0Gz60mGxOwSTcR9db0IDeyl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit You're right, I moved it near the top of my init file, and it works Solved! Thanks On 30/03/2024 12:43, yantar92 at posteo.net wrote: > Kepa writes: > >> I have added a custom face, but it doesn't work unless I do "M-x >> org-mode-restart". >> >> The custom face: >> >> (defun yant/apply-custom-faces () >>   (add-to-list 'org-font-lock-extra-keywords >> '("(\\([^)]*?[A-Z]+[^)]+?[0-9]\\{3,4\\}[^)]*\\))" . (0 'shadow prepend)) >> '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 >> 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 > inhttps://orgmode.org/manual/Feedback.html#Feedback > --------------v0Gz60mGxOwSTcR9db0IDeyl Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

You're right, I moved it near the top of my init file, and it works


Solved!

Thanks

On 30/03/2024 12:43, yantar92 at posteo.net wrote:
Kepa <gnu.cognition199@slmails.com> writes:

I have added a custom face, but it doesn't work unless I do "M-x 
org-mode-restart".

The custom face:

(defun yant/apply-custom-faces ()
   (add-to-list 'org-font-lock-extra-keywords 
'("(\\([^)]*?[A-Z]+[^)]+?[0-9]\\{3,4\\}[^)]*\\))" . (0 'shadow prepend)) 
'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 
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

--------------v0Gz60mGxOwSTcR9db0IDeyl--