Skip to content

Commit b27cddf

Browse files
minadtarsius
authored andcommitted
hl-todo--combine-face: Use list of faces instead of inheriting
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.
1 parent eafb480 commit b27cddf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: hl-todo.el

+3-3
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ including alphanumeric characters, cannot be used here."
254254

255255
(defun hl-todo--combine-face (face)
256256
(if (stringp face)
257-
(list :inherit 'hl-todo
258-
(if hl-todo-color-background :background :foreground)
259-
face)
257+
`((,(if hl-todo-color-background :background :foreground)
258+
,face)
259+
hl-todo)
260260
face))
261261

262262
(defvar-keymap hl-todo-mode-map

0 commit comments

Comments
 (0)