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

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

Re: Using normal weight for org strike-through


From: fatiparty
Subject: Re: Using normal weight for org strike-through
Date: Sat, 29 Jan 2022 14:01:48 +0100 (CET)

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?




reply via email to

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