From 2d63b234b2a87db3f0c3944982a58ed99e51f7e7 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Mon, 14 Jul 2025 14:09:31 -0400 Subject: [PATCH] Move ad-redefinition-action to early-init.el --- early-init.el | 3 +++ init.el | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/early-init.el b/early-init.el index f032939..9abbfb7 100644 --- a/early-init.el +++ b/early-init.el @@ -223,6 +223,9 @@ pre-early-init.el, and post-early-init.el.") (when (boundp 'pgtk-wait-for-event-timeout) (setq pgtk-wait-for-event-timeout 0.001)) +;; Disable warnings from the legacy advice API. They aren't useful. +(setq ad-redefinition-action 'accept) + ;;; Performance: Miscellaneous options ;; Font compacting can be very resource-intensive, especially when rendering diff --git a/init.el b/init.el index e1f8f54..5f435d6 100644 --- a/init.el +++ b/init.el @@ -38,11 +38,6 @@ (setq use-short-answers t) (advice-add 'yes-or-no-p :override #'y-or-n-p)) -;;; Features, warnings, and errors - -;; Disable warnings from the legacy advice API. They aren't useful. -(setq ad-redefinition-action 'accept) - ;;; Undo/redo (setq undo-limit (* 13 160000)