branch: externals/colorful-mode
commit c2d2fe8dc27a3be294526a208db5bccaaac0be42
Author: kgt <[email protected]>
Commit: kgt <[email protected]>

    fix: `colorful-extra-color-keyword-functions` with list of modes
---
 colorful-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/colorful-mode.el b/colorful-mode.el
index a779e9053b..7d2104f817 100644
--- a/colorful-mode.el
+++ b/colorful-mode.el
@@ -946,7 +946,7 @@ This is intended to be used with 
`colorful-extra-color-keyword-functions'."
   (dolist (fn colorful-extra-color-keyword-functions)
     (cond
      ((and (listp fn)
-           (derived-mode-p (car fn)))
+           (cl-some #'derived-mode-p (ensure-list (car fn))))
       (if (listp (cdr fn))
           (dolist (fn-list (cdr fn))
             (funcall fn-list))

Reply via email to