Add core/autoload/debug.el
This commit is contained in:
parent
03df44381d
commit
7a72a019ea
1 changed files with 31 additions and 0 deletions
31
core/autoload/debug.el
Normal file
31
core/autoload/debug.el
Normal file
|
@ -0,0 +1,31 @@
|
|||
;;; debug.el
|
||||
(provide 'core-lib-debug)
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/what-face (pos)
|
||||
"Tells you the name of the face (point) is on."
|
||||
(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))))
|
||||
(if face (message "Face: %s" face) (message "No face at %d" pos)))
|
||||
(if hl-line-p (hl-line-mode 1))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/what-col ()
|
||||
(interactive)
|
||||
(message "Column %d" (current-column)))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/what-bindings (key)
|
||||
(list
|
||||
(minor-mode-key-binding key)
|
||||
(local-key-binding key)
|
||||
(global-key-binding key)))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/what-major-mode ()
|
||||
(interactive)
|
||||
(message "Mode: %s" major-mode))
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue