Refactor unimportant-latex-face usage

This commit is contained in:
TEC 2022-01-08 02:40:05 +08:00
parent 460f7fcb09
commit 5278083f15
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 5 additions and 5 deletions

View File

@ -10510,13 +10510,13 @@ Maths deliminators can be de-emphasised a bit
(font-lock-add-keywords
'latex-mode
`((,(rx (and "\\" (any "()[]"))) 0 'unimportant-latex-face prepend))
`(("\\\\[]()[]" 0 'unimportant-latex-face prepend))
'end)
(font-lock-add-keywords
'latex-mode
`((,"\\\\[[:word:]]+" 0 'font-lock-keyword-face prepend))
'end)
;; (font-lock-add-keywords
;; 'latex-mode
;; '(("\\\\[[:word:]]+" 0 'font-lock-keyword-face prepend))
;; 'end)
#+end_src
And enable shell escape for the preview