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.
org.el
of orgmode 9.0.5.org-emphasis-alist
. I did not fiddle around directly withcustom-set-variables
.org-emphasis-alist
they shouldn't use therepeat
customization type which allows insertion and deletion. Furthermore, they should add a note about this restriction in the doc string oforg-emphasis-alist
. Maybe, you can give a follow-up in the bug-report about that. Nevertheless, I don't move a bit from my statement that it is very strange that this option does not work as sanely expected. It would be easy to construct a regexp for the parser from that list and work with that in the library. One shouldn't annoy ones users!