From cec2b4e9bc9a3f10e5b7afd38c5a836fc68e4739 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 7 Mar 2019 23:26:38 -0500 Subject: [PATCH] Add doom/toggle-debug-mode command --- core/autoload/debug.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/autoload/debug.el b/core/autoload/debug.el index a5261d93d..03e763be1 100644 --- a/core/autoload/debug.el +++ b/core/autoload/debug.el @@ -320,3 +320,9 @@ If INIT-FILE is non-nil, profile that instead of USER-INIT-FILE." ;;;###autoload (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))