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)
|
||||
"Tells you the name of the face (point) is on."
|
||||
(interactive "d")
|
||||
(let ((hl-line-p hl-line-mode))
|
||||
(if hl-line-p (hl-line-mode -1))
|
||||
(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 face (message "Face: %s" face) (message "No face at %d" pos)))
|
||||
(if hl-line-p (hl-line-mode 1))))
|
||||
|
||||
;;;###autoload
|
||||
(defun what-col ()
|
||||
|
Reference in New Issue
Block a user