emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Help: How to change faces of words between parenthesis


From: Ihor Radchenko
Subject: Re: Help: How to change faces of words between parenthesis
Date: Sun, 11 Feb 2024 14:20:18 +0000

Ypo <ypuntot@gmail.com> writes:

> Could it be possible to change the color of words between parentheses?
>
> For example, in:
>
> "mejorar su bienestar psicológico (Cronin et al., 2012; Molero, Fuster, 
> Jetten y Moriano, 2011; Outten, Schmitt, García y Branscombe, 2009; 
> Pérez-Garín et al., 2016)."
>
> I would like that this part changes into a lighter color, so it doesn't 
> distract me when reading:

(defun yant/apply-custom-faces ()
  (add-to-list 'org-font-lock-extra-keywords '("([^)]+)" . (0 
'font-lock-comment-face prepend)) 'append))
(add-hook 'org-font-lock-set-keywords-hook #'yant/apply-custom-faces)

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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