mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix inverted on/off message from doom-debug-mode
This commit is contained in:
@ -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"))))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user