[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 02:16:34 +0100 (CET) |
Jan 12, 2022, 12:16 by michael_heerdegen@web.de:
> fatiparty--- via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org> writes:
>
>> I want to colourise emphasized text in org-mode. Am using the
>> following code, but it is not taking effect.
>>
>
> Did you follow the "You need to reload Org or to restart Emacs after
> customizing this." hint in the `org-emphasis-alist' docstring?
>
> Michael.
>
I followed through and can now see the colouring. What would I have to do in
order
to colourise
("=" org-verbatim verbatim)
("~" org-code verbatim)
("+" (:strike-through t))))
For bold, italic and underline, I am using
(defface my-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.")
(defface my-emphasis-italic
'((default :inherit italic)
(((class color) (min-colors 88) (background light))
:foreground "#a60000")
(((class color) (min-colors 88) (background dark))
:foreground "#ff8059"))
"My underline emphasis for Org.")
(defface my-emphasis-underline
'((default :inherit underline)
(((class color) (min-colors 88) (background light))
:foreground "#a60000")
(((class color) (min-colors 88) (background dark))
:foreground "#ff8059"))
"My underline emphasis for Org.")
(setq org-emphasis-alist
'(("*" my-emphasis-bold)
("/" my-emphasis-italic)
("_" my-emphasis-underline)
("=" org-verbatim verbatim)
("~" org-code verbatim)
("+" (:strike-through t))))