This might be interersting: For quite some time I used the code block below in my custom.el to make my own emphasis definitions. This worked up to org 9, I think. Then all of a sudden when I needed it again it stopped working. I found out that it had nothing to do with my config. So I filed a bug report. Then Nicolas Goaziou told me that it even if it worked in the past it is not supported meaning they won't fix it. He gave me the advice below, but without any knowlege of coding and lisp that ain't helping. What I need is quite simple. I want to define a character before and after a word or line and the defined face should be applied.Like: %Exampletext Bla Bla% Based on my codeblock this should turn into "org-habit-alert-face" which is more or less yellow. The % character should be invisible when set. Like ** for bold. So can anyone with knowlege of lisp help me out here?
My custom-set-variables block that worked before:
'(org-emphasis-alist
(quote
(
("!" org-habit-overdue-face)
("%" org-habit-alert-face)
("*" bold)
("/" italic)
("_" underline)
("=" org-verbatim verbatim)
("~" org-code verbatim)
("+" (:strike-through t))
)))
Advice by Nicolas Goaziou:
You may want to tweak font-lock related variables, e.g., `org-font-lock-hook' to achieve that effect.