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
|
||||
(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"))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue