doom/what-face: accept pos arg

This commit is contained in:
Henrik Lissner 2017-06-08 02:04:06 +02:00
parent 89db7ac2b9
commit 655e565fe0

View file

@ -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)))