For major modes with poorly implemented syntax-tables, or simply can't use them for their comments.
16 lines
555 B
EmacsLisp
16 lines
555 B
EmacsLisp
;;; ui/hl-todo/packages.el -*- lexical-binding: t; -*-
|
|
|
|
(def-package! hl-todo
|
|
:commands hl-todo-mode
|
|
:init (add-hook 'prog-mode-hook #'hl-todo-mode)
|
|
:config
|
|
(setq hl-todo-keyword-faces
|
|
`(("TODO" . ,(face-foreground 'warning))
|
|
("FIXME" . ,(face-foreground 'error))
|
|
("NOTE" . ,(face-foreground 'success))))
|
|
|
|
;; Use a more primitive todo-keyword detection method in major modes that
|
|
;; don't use/have a valid syntax table entry for comments.
|
|
(add-hook!
|
|
(pug-mode haml-mode)
|
|
#'+hl-todo|use-face-detection))
|