Add doom/toggle-debug-mode command
This commit is contained in:
parent
f2b8280b2a
commit
cec2b4e9bc
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue