Add doom/toggle-debug-mode command

This commit is contained in:
Henrik Lissner 2019-03-07 23:26:38 -05:00
parent f2b8280b2a
commit cec2b4e9bc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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))