doom-log: include doom-debug-mode test in result

Relevant to #1215
This commit is contained in:
Henrik Lissner 2019-03-05 00:19:51 -05:00
parent 75b366285f
commit cf5a398e0d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -106,8 +106,8 @@ This is used by `associate!', `file-exists-p!' and `project-file-exists-p!'."
"Log to *Messages* if `doom-debug-mode' is on.
Does not interrupt the minibuffer if it is in use, but still logs to *Messages*.
Accepts the same arguments as `message'."
(when doom-debug-mode
`(let ((inhibit-message (active-minibuffer-window)))
`(when doom-debug-mode
(let ((inhibit-message (active-minibuffer-window)))
(message
,(concat (propertize "DOOM " 'face 'font-lock-comment-face)
format-string