mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add doom/toggle-debug-mode command
This commit is contained in:
@ -320,3 +320,9 @@ If INIT-FILE is non-nil, profile that instead of USER-INIT-FILE."
|
|||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(advice-add #'esup :override #'doom/profile-emacs)
|
(advice-add #'esup :override #'doom/profile-emacs)
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom/toggle-debug-mode ()
|
||||||
|
"Enable `debug-on-error' and `doom-debug-mode' for verbose logging."
|
||||||
|
(interactive)
|
||||||
|
(setq doom-debug-mode doom-debug-on-error))
|
||||||
|
Reference in New Issue
Block a user