mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
refactor(lib): doom-debug-mode: make verbosity selective
Now `doom-debug-mode` manipulates `doom-log-level` if you activate it with a prefix arg, setting it to 1 by default, reducing its verbosity and cutting down on noise in the logs.
This commit is contained in:
@ -42,8 +42,8 @@ This is controlled by `+format-on-save-disabled-modes'."
|
||||
(add-hook 'lsp-managed-mode-hook #'+format-with-lsp-toggle-h))
|
||||
|
||||
:config
|
||||
(add-to-list 'doom-debug-variables '(apheleia-log-only-errors . nil))
|
||||
(add-to-list 'doom-debug-variables '(apheleia-log-debug-info . t))
|
||||
(set-debug-variable! 'apheleia-log-only-errors nil)
|
||||
(set-debug-variable! 'apheleia-log-debug-info t 2)
|
||||
|
||||
(defadvice! +format--inhibit-reformat-on-prefix-arg-a (orig-fn &optional arg)
|
||||
"Make it so \\[save-buffer] with prefix arg inhibits reformatting."
|
||||
|
@ -31,7 +31,7 @@
|
||||
(add-transient-hook! #'company-yasnippet (require 'yasnippet))
|
||||
|
||||
:config
|
||||
(add-to-list 'doom-debug-variables '(yas-verbosity . 3))
|
||||
(set-debug-variable! 'yas-verbosity 3)
|
||||
|
||||
;; Allow private snippets in DOOMDIR/snippets
|
||||
(add-to-list 'yas-snippet-dirs '+snippets-dir)
|
||||
|
Reference in New Issue
Block a user