Various tweaks & clean up

This commit is contained in:
Henrik Lissner 2017-05-01 14:52:29 -04:00
parent 312371fc26
commit d651311d1d
5 changed files with 9 additions and 7 deletions

View file

@ -6,8 +6,8 @@
(interactive "d")
(let ((hl-line-p (bound-and-true-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))))
(let ((face (or (get-char-property pos 'read-face-name)
(get-char-property pos 'face))))
(if face (message "Face: %s" face) (message "No face at %d" pos)))
(if hl-line-p (hl-line-mode 1))))