mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-19 13:43:36 -05:00
doom/what-face: accept pos arg
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
;;; debug.el
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/what-face (pos)
|
||||
"Lists all faces at point. Overlay faces are <>-delimited."
|
||||
(defun doom/what-face (&optional pos)
|
||||
"Lists all faces at point. Overlay faces are denoted with an asterix."
|
||||
(interactive "d")
|
||||
(let ((pos (point))
|
||||
(let ((pos (or pos (point)))
|
||||
faces)
|
||||
(when-let (face (get-text-property pos 'face))
|
||||
(dolist (f (if (listp face) face (list face)))
|
||||
|
Reference in New Issue
Block a user