Re: I can't make a custom face to take effect

2024-03-30 Thread Kepa
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 ()   (a

Re: I can't make a custom face to take effect

2024-03-30 Thread Ihor Radchenko
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))

I can't make a custom face to take effect

2024-03-30 Thread Kepa
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-loc