Skip to content

Commit

Permalink
hl-todo-keyword-faces: Re-enable mode to pick up updated value
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 14, 2023
1 parent 6db6a0b commit 60ab1b6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hl-todo.el
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,15 @@ a Grep implementation other than GNU's, then that may break
:type '(repeat (cons (string :tag "Keyword")
(choice :tag "Face "
(string :tag "Color")
(sexp :tag "Face")))))
(sexp :tag "Face"))))
:set (lambda (symbol value)
(set-default-toplevel-value symbol value)
(dolist (buf (buffer-list))
(with-current-buffer buf
(when hl-todo-mode
(setq hl-todo--regexp nil)
(hl-todo-mode -1)
(hl-todo-mode 1))))))

(defcustom hl-todo-color-background nil
"Whether to emphasize keywords using the background color.
Expand Down

0 comments on commit 60ab1b6

Please sign in to comment.