Fix #4033: correctly toggle explain-pause-mode

On doom-debug-mode.
This commit is contained in:
Henrik Lissner 2020-10-05 23:02:36 -04:00
parent 64922dd301
commit 3cb7458d34
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -50,7 +50,7 @@ symbol and CDR is the value to set it to when `doom-debug-mode' is activated.")
(set-default var enabled) (set-default var enabled)
(add-to-list 'doom--debug-vars-undefined var))))) (add-to-list 'doom--debug-vars-undefined var)))))
(when (fboundp 'explain-pause-mode) (when (fboundp 'explain-pause-mode)
(explain-pause-mode enabled)) (explain-pause-mode (if enabled +1 -1)))
;; Watch for changes in `doom-debug-variables', or when packages load (and ;; Watch for changes in `doom-debug-variables', or when packages load (and
;; potentially define one of `doom-debug-variables'), in case some of them ;; potentially define one of `doom-debug-variables'), in case some of them
;; aren't defined when `doom-debug-mode' is first loaded. ;; aren't defined when `doom-debug-mode' is first loaded.