all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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: Re: Using normal weight for org strike-through
Date: Sat, 29 Jan 2022 14:01:48 +0100 (CET)	[thread overview]
Message-ID: <Mu_vLqD--7-2@tutanota.com> (raw)
In-Reply-To: <Mu_51-W--3-2@tutanota.com-Mu_5_8D----2>

Jan 29, 2022, 21:08 by help-gnu-emacs@gnu.org:

> Jan 28, 2022, 20:10 by fatiparty@tutanota.com:
>
>> Jan 27, 2022, 17:55 by help-gnu-emacs@gnu.org:
>>
>>>
>>> I am using the following code to change the colour of emphasis (strike-through).
>>> But I also want to use normal weight for the font.  How can this be done?
>>>
>>> (defface emph-strike
>>>   '((default :inherit (:strike-through t))
>>>     (((class color) (min-colors 88) (background dark))
>>>      :foreground "#ae6029")
>>>     (((class color) (min-colors 88) (background light))
>>>      :foreground "#ae6029"))
>>>   "Colour typeface for strike emphasis.")
>>>
>>> (setq org-emphasis-alist
>>>       '("+" emph-strike) )
>>>
>> My configuration uses bold, but want to change  org emphasis strike-through to use normal
>> weight. 
>>

Have now used 

(defface matryoshka-emph-strike
  '( ( default :inherit (:strike-through t :weight normal))
     ( ((class color) (min-colors 88) (background dark))
       :foreground "#ae6029" )
     ( ((class color) (min-colors 88) (background light))
       :foreground "#ae6029" ) )
  "Grey coloured typeface for strike emphasis.")
This works, but is it the proper way to do it?




      parent reply	other threads:[~2022-01-29 13:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27  5:55 Using normal weight for org strike-through fatiparty--- via Users list for the GNU Emacs text editor
     [not found] ` <MuP5aYN--3-2@tutanota.com-MuP62Rs----2>
2022-01-28  8:10   ` fatiparty--- via Users list for the GNU Emacs text editor
     [not found]   ` <MuUj75K--3-2@tutanota.com-MuUj7A8----2>
2022-01-29  9:08     ` fatiparty--- via Users list for the GNU Emacs text editor
     [not found]     ` <Mu_51-W--3-2@tutanota.com-Mu_5_8D----2>
2022-01-29 13:01       ` fatiparty--- via Users list for the GNU Emacs text editor [this message]

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

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

  git send-email \
    --in-reply-to=Mu_vLqD--7-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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.