doom/what-face: accept pos arg
This commit is contained in:
parent
89db7ac2b9
commit
655e565fe0
1 changed files with 3 additions and 3 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue