unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: fatiparty--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Fatiparty <fatiparty@tutanota.com>
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Colourising emphasized text in org-mode
Date: Wed, 12 Jan 2022 01:12:08 +0100 (CET)	[thread overview]
Message-ID: <MtAc9rK--3-2@tutanota.com> (raw)
In-Reply-To: <MtAVGSN--3-2@tutanota.com-MtAVOsm----2>

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.



  parent reply	other threads:[~2022-01-12  0:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-11 23:37 Colourising emphasized text in org-mode fatiparty--- via Users list for the GNU Emacs text editor
     [not found] ` <MtAVGSN--3-2@tutanota.com-MtAVOsm----2>
2022-01-12  0:12   ` fatiparty--- via Users list for the GNU Emacs text editor [this message]
2022-01-12  0:16 ` Michael Heerdegen
2022-01-12  1:16   ` fatiparty--- via Users list for the GNU Emacs text editor
2022-01-12 14:36     ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MtAc9rK--3-2@tutanota.com \
    --to=help-gnu-emacs@gnu.org \
    --cc=fatiparty@tutanota.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).