Strike-through texts (like this: +text+) in Org-mode are black by default. I want to make them gray. The problem is, I can't find the place to customize it. I've tried M=x describe-face
, and the result is "default face", which is puzzling. Doesn't Org-mode have a place to configure the strike-through color?
-
What version of org-mode are you using? In my 7.9.1 strike +text+ don't change color, only a strike line appears. – Roberto Huelga Nov 2 '12 at 8:33
-
Mine is 7.7. My point is, I want it to change color. – Betty Nov 2 '12 at 12:55
-
As far as I can tell from the docs, strike-through is not a face, but an attribute of the text/face which in this case is imposed on top of whatever face is in effect (like, default-face). In other words, you cannot customize it using customize face. – Joost Diepenmaat Nov 2 '12 at 13:36
Customize the org-emphasis-alist
variable with M-x customize-variable. Find the list entry where the "marker character" is +
and choose the "Font-lock-face" option in the "Value menu" popup. Input the value of a face of your choosing, whose exact look you can customize the usual way, for example with M-x customize-face.
Or, more succinctly:
(require 'cl) ; for delete*
(setq org-emphasis-alist
(cons '("+" '(:strike-through t :foreground "gray"))
(delete* "+" org-emphasis-alist :key 'car :test 'equal)))