I created a highlighter for org-mode
which worked great (pre orgmode 9.0). But now my customizations are being ignored...
Here is the excerpt from my init.el
file:
;;; Create highlighter face
(defface my-highlight-face
'((t (:inherit org-default :foreground "#000000" :background "#ffffe7")))
"Face for highlighting text")
(defvar my-highlight1-face 'my-highlight1-face)
;; Add to list
(setq org-emphasis-alist `(("*" bold)
("/" italic)
("_" underline)
("=" org-verbatim verbatim)
("~" org-code verbatim)
("+" ,(if (featurep 'xemacs) 'org-table '(:strike-through t)))
("!" my-highlight1-face verbatim)))
;;; Reload org to make it stick
(org-reload)
To check that this worked, I restart emacs and run M-x customize-variable
> org-emphasis-alist
. Scrolling down, I can see that my-highlight1-face
has been added to the list:
But opening a random org
buffer and typing !text to highlight!
does nothing.
What am I missing?