emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kepa <gnu.cognition199@slmails.com>
To: emacs-orgmode@gnu.org
Subject: I can't make a custom face to take effect
Date: Sat, 30 Mar 2024 12:33:25 +0100	[thread overview]
Message-ID: <171179841468.7.17160523106114869383.297490625@slmails.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

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)


[-- Attachment #2: Type: text/html, Size: 1919 bytes --]

             reply	other threads:[~2024-03-30 11:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-30 11:33 Kepa [this message]
2024-03-30 11:43 ` I can't make a custom face to take effect Ihor Radchenko
2024-03-30 12:15   ` Kepa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=171179841468.7.17160523106114869383.297490625@slmails.com \
    --to=gnu.cognition199@slmails.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).