ui/hl-todo: map keywords to faces, not color strings

Future proofs changes the loaded them.
This commit is contained in:
Henrik Lissner 2019-12-01 23:00:05 -05:00
parent bf0a797a36
commit 5ad4a018b1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -5,12 +5,12 @@
:config
(setq hl-todo-highlight-punctuation ":"
hl-todo-keyword-faces
`(("TODO" . ,(face-foreground 'warning))
("FIXME" . ,(face-foreground 'error))
("HACK" . ,(face-foreground 'font-lock-constant-face))
("REVIEW" . ,(face-foreground 'font-lock-keyword-face))
("NOTE" . ,(face-foreground 'success))
("DEPRECATED" . ,(face-foreground 'font-lock-doc-face))))
`(("TODO" warning bold)
("FIXME" error bold)
("HACK" font-lock-constant-face bold)
("REVIEW" font-lock-keyword-face bold)
("NOTE" success bold)
("DEPRECATED" font-lock-doc-face bold)))
;; Use a more primitive todo-keyword detection method in major modes that
;; don't use/have a valid syntax table entry for comments.