mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-31 14:43:40 -05:00
doom/what-face: return list noninteractively
This commit is contained in:
@@ -13,11 +13,13 @@
|
||||
(let ((face (overlay-get ov 'face)))
|
||||
(dolist (f (if (listp face) face (list face)))
|
||||
(push (propertize (concat (symbol-name f) "*") 'face f) faces))))
|
||||
|
||||
(if (called-interactively-p 'any)
|
||||
(message "%s %s"
|
||||
(propertize "Faces:" 'face 'font-lock-comment-face)
|
||||
(if faces (string-join faces ", ") "n/a"))))
|
||||
(if faces (string-join faces ", ") "n/a"))
|
||||
(mapcar #'substring-no-properties faces))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-active-minor-modes ()
|
||||
"Get a list of active minor-mode symbols."
|
||||
(cl-remove-if (lambda (m) (and (boundp m) (symbol-value m)))
|
||||
|
Reference in New Issue
Block a user