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: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Colourising emphasized text in org-mode
Date: Wed, 12 Jan 2022 02:16:34 +0100 (CET)	[thread overview]
Message-ID: <MtAquiu--3-2@tutanota.com> (raw)
In-Reply-To: <87wnj5ajvo.fsf@web.de>


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))))


  reply	other threads:[~2022-01-12  1:16 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
2022-01-12  0:16 ` Michael Heerdegen
2022-01-12  1:16   ` fatiparty--- via Users list for the GNU Emacs text editor [this message]
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=MtAquiu--3-2@tutanota.com \
    --to=help-gnu-emacs@gnu.org \
    --cc=fatiparty@tutanota.com \
    --cc=michael_heerdegen@web.de \
    /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).