emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I can't make a custom face to take effect


From: Kepa
Subject: I can't make a custom face to take effect
Date: Sat, 30 Mar 2024 12:33:25 +0100

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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]