From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sJx8Jwj6B2YxNAEAqHPOHw:P1 (envelope-from ) for ; Sat, 30 Mar 2024 12:39:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sJx8Jwj6B2YxNAEAqHPOHw (envelope-from ) for ; Sat, 30 Mar 2024 12:39:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=wyCjCA9y; 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=1711798792; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DxOxNqABnIClRxeZQV8HJWMoaMYf4tusuqM/cmZCFDE=; b=VkesDsYEncc0tU2+RtiYbjFqchgQU/xze2zuHHDI8ypSkq8dbk6koGJ89RFkT+Lb9F396d 50onB9RrbRHAGkHiPEeAepi8oiucdERII0pkT6t73pgujKkglG+j7l/FfJXcd0ufMLrgpU tEECNkyqDh/kZDDSK2J2T5PPAt1tl4iSH2wpgRS2JNCbMd41fftAeHeTLUOkPV1M6KZ+Qy 9KBzqE3IFAjxfZEBw2SZsb8E6MpWjn9JD4ASpOOGz/pm8NHzxCMPOa3+0G7+WAVJtYY32K QxcI84hmlRWN34LNaCSNH8D+dnnvx1iuksHD4ae1nwmHXxkswMlpo3g7B/vqNw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=wyCjCA9y; 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=1711798792; a=rsa-sha256; cv=pass; b=K0zmvzZN+iwTCx/aI9KQROnxXL5QIXmlpyucxlt7kl4RvafSZ/T0PubpH8Y/xQO6G5Ba7A 4ZzopgtzeUtKLCDtA67Es56EMah2eeSiH/VEecZ/65EfOCD6RfP4wo33EZ6wxTJGZ/72W0 48FDe9pJZbz/m2oNRHPv/NjKECBL2v69Lw0diXYTxXsjjYPTAppiWgD2YVvvZ3hAyMPIrP 7FKnBNyZvKwgKprk8aMFg0RP0Ifb7yIJUqtsaJl2J5Zy+lCPMD2l6NT3fFQ6ZcTS1EO7Lm UxBW0y6mwFRy70szXI0CbgNgmFTNGFj0F8WmQFUipVwmiSh2pAXykB7PQEZAjg== 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 4F5293EB10 for ; Sat, 30 Mar 2024 12:39:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqX36-0002Yw-6F; Sat, 30 Mar 2024 07:39:00 -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 1rqX34-0002YS-5S for emacs-orgmode@gnu.org; Sat, 30 Mar 2024 07:38:58 -0400 Received: from mail-200167.simplelogin.co ([176.119.200.167]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqX32-0005V5-I1 for emacs-orgmode@gnu.org; Sat, 30 Mar 2024 07:38:57 -0400 ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1711798415; cv=none; b=HoDM8NclLVhXtHQbNTcUVqrZhyDf2tSNjuDlK5ozeOI0V6pIZZo/mcmFPhLfQldKqMNiSZQRaXolRkzTzx5N41sIS1cJOzgMHoLi86Xfs6cZHnmiNofsF+2v85K+681WlLnLbk4RhGdEABvLyCIy/cXhylQReyHB5ge7qAXC6lQYCQok12PsSinOKh6pOxyYiwGhn16qMaVe0vTWDo2Ki4LAuSDJdTC7J1yWqzDPQWrYowRek5nQMLvgwcEJ3EyWeeYzRVqrm0j5J4OHyJNnIRPPi+0ln5mjfKE/1S8DS1aKHsv3EZjclJcro8mMccoxekgI7eSFdUlsxcaADURBwA== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1711798415; c=relaxed/simple; bh=83xZtKm8BmQPGfM25978Lsvrl3Bmbs7I+kJVlv6AcRE=; h=Date:Subject:From:To; b=QqKErspPQ4UrWhEGu/4CXq2oPDEGhUUCywLJN8cWuvl6aUF7aPSj/38mrzCQfafjSPWQDawQiUyeRDGZwIJLJUZ/WFmIn9btPtX1p1qQJeFqET0+Wh3/zy5EKWp3F9DTEeGxm6tgwCVAI6aK5F7WiYerIdoZlJlWi2CKGl18bErTppemntizThCBGXsbkquAuDeM0SL02ZarXRO79epxDGxc+863kX9Yp9kN0MzrHNHmhsQd8eCWyjIreCzG70LTGFJ7buhzxpqVXIuJeHE0SXNSCNr7nN2cJNaHP6rvHU/buSK3Em9vpTPTH9UTQRAsSYU09BwdK+CKgf1dbygN2g== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slmails.com; s=dkim; t=1711798415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DxOxNqABnIClRxeZQV8HJWMoaMYf4tusuqM/cmZCFDE=; b=wyCjCA9y28B4MQ9zT/rmZcIlEHyImBp+Ds929bCQYeKGDPW45KWftyPNs2RkMDKUKSEe99 m8qzPAjHfntOWa2oUaAbKtCOB4I8RF7ihCN2iexC90BtxCUANUDtKEWidRb89L0910b5PU y7+9difn5KmTJfxv3dMaivYNgPwcRog= Content-Type: multipart/alternative; boundary="------------0EJfiPite6LCKR88Yz6OuFdh" Date: Sat, 30 Mar 2024 12:33:25 +0100 Subject: I can't make a custom face to take effect MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Kepa To: emacs-orgmode@gnu.org Message-ID: <171179841468.7.17160523106114869383.297490625@slmails.com> X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 297490625 X-SimpleLogin-Want-Signing: yes Received-SPF: pass client-ip=176.119.200.167; envelope-from=sl.lmysyibshe3tiojqgyzdklbageytqmbqguzv2.2x52p6goj3whe@slmails.com; helo=mail-200167.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, RCVD_IN_MSPIKE_H2=-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-Spam-Score: -5.84 X-Migadu-Queue-Id: 4F5293EB10 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.84 X-TUID: TpQro/nc2QWW --------------0EJfiPite6LCKR88Yz6OuFdh Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi 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. This is my desktop-save config:  '(desktop-auto-save-timeout nil)  '(desktop-base-file-name "emacs-desktop")  '(desktop-file-name-format 'tilde)  '(desktop-lazy-idle-delay 0)  '(desktop-load-locked-desktop t)  '(desktop-missing-file-warning nil)  '(desktop-path '("~/.emacs.d/"))  '(desktop-restore-eager t)  '(desktop-restore-forces-onscreen 'all)  '(desktop-save nil) (setq desktop-restore-frames t) (setq desktop-restore-in-current-display t) (desktop-read) --------------0EJfiPite6LCKR88Yz6OuFdh Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi

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.

This is my desktop-save config:

 '(desktop-auto-save-timeout nil)
 '(desktop-base-file-name "emacs-desktop")
 '(desktop-file-name-format 'tilde)
 '(desktop-lazy-idle-delay 0)
 '(desktop-load-locked-desktop t)
 '(desktop-missing-file-warning nil)
 '(desktop-path '("~/.emacs.d/"))
 '(desktop-restore-eager t)
 '(desktop-restore-forces-onscreen 'all)
 '(desktop-save nil)

(setq desktop-restore-frames t)
(setq desktop-restore-in-current-display t)
(desktop-read)


--------------0EJfiPite6LCKR88Yz6OuFdh--