From 3ebc9afba692eaefab0be3db59a359e808274612 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Wed, 2 Oct 2024 12:48:37 -0400 Subject: [PATCH] Move ad-redefinition-action and warning-suppress-types to init.el --- early-init.el | 5 ----- init.el | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/early-init.el b/early-init.el index 0f74d16..edaca22 100644 --- a/early-init.el +++ b/early-init.el @@ -101,11 +101,6 @@ When set to non-nil, Emacs will automatically call `package-initialize' and (setq-default cursor-in-non-selected-windows nil) (setq highlight-nonselected-windows nil) -;; Disable warnings from the legacy advice API. They aren't useful. -(setq ad-redefinition-action 'accept) - -(setq warning-suppress-types '((lexical-binding))) - ;; Don't ping things that look like domain names. (setq ffap-machine-p-known 'reject) diff --git a/init.el b/init.el index 6187664..ffd1ef7 100644 --- a/init.el +++ b/init.el @@ -34,6 +34,13 @@ ;; Ensure the 'use-package' package is installed and loaded +;;; Warnings and errors + +;; Disable warnings from the legacy advice API. They aren't useful. +(setq ad-redefinition-action 'accept) + +(setq warning-suppress-types '((lexical-binding))) + ;;; Minibuffer ;; Allow nested minibuffers (setq enable-recursive-minibuffers t)