Add debug! macro
This commit is contained in:
parent
1fd27f16b3
commit
8f7e138357
1 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,12 @@ interactive session."
|
||||||
(with-selected-window (doom-popup-buffer buf)
|
(with-selected-window (doom-popup-buffer buf)
|
||||||
(goto-char (point-max))))))
|
(goto-char (point-max))))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defmacro debug! (message &rest args)
|
||||||
|
"Out a debug message if `doom-debug-mode' is non-nil. Otherwise, ignore this."
|
||||||
|
(when doom-debug-mode
|
||||||
|
`(message ,message ,@args)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom-ansi-apply (code format &rest args)
|
(defun doom-ansi-apply (code format &rest args)
|
||||||
(let ((rule (or (assq code doom-message-fg)
|
(let ((rule (or (assq code doom-message-fg)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue