mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Reset hl-todo-mode if already active
This commit is contained in:
@ -7,8 +7,12 @@
|
||||
This is useful for major modes that don't use or have a valid syntax-table entry
|
||||
for comment start/end characters."
|
||||
(set (make-local-variable 'hl-todo-keywords)
|
||||
`(((lambda (limit)
|
||||
'(((lambda (limit)
|
||||
(let (case-fold-search)
|
||||
(and (re-search-forward hl-todo-regexp limit t)
|
||||
(memq 'font-lock-comment-face (doom-enlist (get-text-property (point) 'face)))))
|
||||
(1 (hl-todo-get-face) t t))))))
|
||||
(memq 'font-lock-comment-face (doom-enlist (get-text-property (point) 'face))))))
|
||||
(1 (hl-todo-get-face) t t))))
|
||||
(when hl-todo-mode
|
||||
(hl-todo-mode -1)
|
||||
(hl-todo-mode +1)))
|
||||
|
||||
|
Reference in New Issue
Block a user