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
|
;;; debug.el
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/what-face (pos)
|
(defun doom/what-face (&optional pos)
|
||||||
"Lists all faces at point. Overlay faces are <>-delimited."
|
"Lists all faces at point. Overlay faces are denoted with an asterix."
|
||||||
(interactive "d")
|
(interactive "d")
|
||||||
(let ((pos (point))
|
(let ((pos (or pos (point)))
|
||||||
faces)
|
faces)
|
||||||
(when-let (face (get-text-property pos 'face))
|
(when-let (face (get-text-property pos 'face))
|
||||||
(dolist (f (if (listp face) face (list face)))
|
(dolist (f (if (listp face) face (list face)))
|
||||||
|
Reference in New Issue
Block a user