Fix inverted on/off message from doom-debug-mode

This commit is contained in:
Henrik Lissner 2020-08-05 23:38:30 -04:00
parent aba2dcaf11
commit b5706c5793
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -20,11 +20,9 @@
;;;###autoload
(define-minor-mode doom-debug-mode
"Toggle `debug-on-error' and `doom-debug-p' for verbose logging."
:init-value doom-debug-p
:init-value nil
:global t
(let ((value
(cond ((eq arg 'toggle) (not doom-debug-mode))
((> (prefix-numeric-value arg) 0)))))
(let ((value doom-debug-mode))
(mapc (doom-rpartial #'set value) doom-debug-variables)
(message "Debug mode %s" (if value "on" "off"))))