Skip to content

Commit

Permalink
hl-todo--combine-face: Use list of faces instead of inheriting
Browse files Browse the repository at this point in the history
Prepend ((:foreground ...) hl-todo) faces instead of (:inherit hl-todo
:foreground ...).  Using the hl-todo face directly makes it a little
easier to inspect the face property and to integrate with other
packages like Embark.
  • Loading branch information
minad authored and tarsius committed Apr 28, 2023
1 parent eafb480 commit b27cddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hl-todo.el
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ including alphanumeric characters, cannot be used here."

(defun hl-todo--combine-face (face)
(if (stringp face)
(list :inherit 'hl-todo
(if hl-todo-color-background :background :foreground)
face)
`((,(if hl-todo-color-background :background :foreground)
,face)
hl-todo)
face))

(defvar-keymap hl-todo-mode-map
Expand Down

0 comments on commit b27cddf

Please sign in to comment.