help-gnu-emacs
[Top][All Lists]
Advanced

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

Colourising emphasized text in org-mode


From: fatiparty
Subject: Colourising emphasized text in org-mode
Date: Wed, 12 Jan 2022 01:12:08 +0100 (CET)

Jan 12, 2022, 11:37 by help-gnu-emacs@gnu.org:

>
> I want to colourise emphasized text in org-mode.  Am using the following 
> code, but it is not taking effect.
>
> (defface my-org-emphasis-bold
>   '((default :inherit bold)
>     (((class color) (min-colors 88) (background light))
>      :foreground "#a60000")
>     (((class color) (min-colors 88) (background dark))
>      :foreground "#ff8059"))
>   "My bold emphasis for Org.")
>
> (setq org-emphasis-alist
>       '(("*" my-org-emphasis-bold)
>     ("/" italic)
>     ("_" underline)
>     ("=" org-verbatim verbatim)
>     ("~" org-code verbatim)
>     ("+" (:strike-through t))))
>

For italic, underline, etc I still want to use italic, underline etc, with the 
addition
of colouring.  Is there a neat way to do it?  At this moment I am inheriting 
the bold,
italic, underline attribute using a function for each.



reply via email to

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