I am trying to replicate
http://endlessparentheses.com/improving-latex-equations-with-font-lock.html
with no success, I get a "defface for ‘endless/unimportant-latex-face’ fails to specify containing group"
error when I compile my init.el
and it does nothing nevertheless.
I cite here the elisp code from http://endlessparentheses.com/improving-latex-equations-with-font-lock.html for reconstruction:
(defface endless/unimportant-latex-face
'((t :height 0.7
:inherit font-lock-comment-face))
"Face used on less relevant math commands.")
(font-lock-add-keywords
'latex-mode
`((,(rx (or (and "\\" (or (any ",.!;")
(and (or "left" "right"
"big" "Big")
symbol-end)))
(any "_^")))
0 'endless/unimportant-latex-face prepend))
'end)
emacs -Q
(no init file)?