Fix inverted on/off message from doom-debug-mode
This commit is contained in:
parent
aba2dcaf11
commit
b5706c5793
1 changed files with 2 additions and 4 deletions
|
@ -20,11 +20,9 @@
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(define-minor-mode doom-debug-mode
|
(define-minor-mode doom-debug-mode
|
||||||
"Toggle `debug-on-error' and `doom-debug-p' for verbose logging."
|
"Toggle `debug-on-error' and `doom-debug-p' for verbose logging."
|
||||||
:init-value doom-debug-p
|
:init-value nil
|
||||||
:global t
|
:global t
|
||||||
(let ((value
|
(let ((value doom-debug-mode))
|
||||||
(cond ((eq arg 'toggle) (not doom-debug-mode))
|
|
||||||
((> (prefix-numeric-value arg) 0)))))
|
|
||||||
(mapc (doom-rpartial #'set value) doom-debug-variables)
|
(mapc (doom-rpartial #'set value) doom-debug-variables)
|
||||||
(message "Debug mode %s" (if value "on" "off"))))
|
(message "Debug mode %s" (if value "on" "off"))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue