diff options
Diffstat (limited to '.emacs.d/slash_functions.el')
-rw-r--r-- | .emacs.d/slash_functions.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/slash_functions.el b/.emacs.d/slash_functions.el new file mode 100644 index 0000000..fa27bb7 --- /dev/null +++ b/.emacs.d/slash_functions.el @@ -0,0 +1,5 @@ +(defun what-face (pos) + (interactive "d") + (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))))
\ No newline at end of file |