doomemacs/modules/ui/hl-todo/config.el

16 lines
515 B
EmacsLisp
Raw Normal View History

;;; ui/hl-todo/packages.el -*- lexical-binding: t; -*-
2017-02-19 18:13:15 -05:00
(def-package! hl-todo
:hook (prog-mode . hl-todo-mode)
2017-02-19 18:13:15 -05:00
: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))