From 9c80b33b895cce5ce750d04db00d07be4c51668a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 8 Aug 2022 17:51:29 +0200 Subject: [PATCH] tweak: suppress defvaralias warnings --- lisp/doom.el | 6 ++++++ lisp/lib/debug.el | 1 + 2 files changed, 7 insertions(+) diff --git a/lisp/doom.el b/lisp/doom.el index bf61bab52..fd8efba3b 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -476,6 +476,12 @@ Otherwise, `en/disable-command' (in novice.el.gz) is hardcoded to write them to ;; useful, and often come from third party packages. (setq ad-redefinition-action 'accept) +;; Ignore warnings about "existing variables being aliased". Otherwise the user +;; gets very intrusive popup warnings about our (intentional) uses of +;; defvaralias. +(after! warnings + (add-to-list 'warning-suppress-types '(defvaralias))) + ;; Reduce debug output unless we've asked for it. (setq debug-on-error init-file-debug jka-compr-verbose init-file-debug) diff --git a/lisp/lib/debug.el b/lisp/lib/debug.el index 303f01ad9..e9d82f675 100644 --- a/lisp/lib/debug.el +++ b/lisp/lib/debug.el @@ -14,6 +14,7 @@ init-file-debug jka-compr-verbose (message-log-max . 16384) + (warning-suppress-types . nil) url-debug use-package-verbose) "A list of variable to toggle on `doom-debug-mode'.