doomemacs/core/defuns-debug.el

31 lines
839 B
EmacsLisp
Raw Normal View History

2014-12-05 17:28:03 -05:00
;; Misc Defuns ;;;;;;;;;;;;;;;;;;;;;;;;;
;;;###autoload
(defun what-face (pos)
"Tells you the name of the face (point) is on."
(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))))
;;;###autoload
(defun what-col ()
(interactive)
(message "Column %d" (current-column)))
;;;###autoload
(defun what-bindings (key)
(list
(minor-mode-key-binding key)
(local-key-binding key)
(global-key-binding key)))
2015-05-08 03:03:38 -04:00
2015-06-04 18:23:21 -04:00
;;;###autoload (autoload 'narf::echo "defuns-debug")
(evil-define-command narf::echo (message)
2015-05-08 03:03:38 -04:00
"Display MSG in echo-area without logging it in *Messages* buffer."
2015-06-04 18:23:21 -04:00
(interactive "<a>")
(let (message-log-max)
(message "%s" message)))
(provide 'defuns-debug)