Move ad-redefinition-action and warning-suppress-types to init.el

This commit is contained in:
James Cherti
2024-10-02 12:48:37 -04:00
parent 2bf5bd012e
commit 3ebc9afba6
2 changed files with 7 additions and 5 deletions

View File

@@ -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-default cursor-in-non-selected-windows nil)
(setq highlight-nonselected-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. ;; Don't ping things that look like domain names.
(setq ffap-machine-p-known 'reject) (setq ffap-machine-p-known 'reject)

View File

@@ -34,6 +34,13 @@
;; Ensure the 'use-package' package is installed and loaded ;; 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 ;;; Minibuffer
;; Allow nested minibuffers ;; Allow nested minibuffers
(setq enable-recursive-minibuffers t) (setq enable-recursive-minibuffers t)