mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-19 13:43:36 -05:00
what-face now ignores hl-line-mode face
This commit is contained in:
@@ -4,9 +4,12 @@
|
|||||||
(defun what-face (pos)
|
(defun what-face (pos)
|
||||||
"Tells you the name of the face (point) is on."
|
"Tells you the name of the face (point) is on."
|
||||||
(interactive "d")
|
(interactive "d")
|
||||||
(let ((face (or (get-char-property (point) 'read-face-name)
|
(let ((hl-line-p hl-line-mode))
|
||||||
(get-char-property (point) 'face))))
|
(if hl-line-p (hl-line-mode -1))
|
||||||
(if face (message "Face: %s" face) (message "No face at %d" pos))))
|
(let ((face (or (get-char-property (point) 'read-face-name)
|
||||||
|
(get-char-property (point) 'face))))
|
||||||
|
(if face (message "Face: %s" face) (message "No face at %d" pos)))
|
||||||
|
(if hl-line-p (hl-line-mode 1))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun what-col ()
|
(defun what-col ()
|
||||||
|
Reference in New Issue
Block a user