From 5883d67749fd1afab387264b7212a0ad014d6f56 Mon Sep 17 00:00:00 2001 From: MitchMarq42 Date: Sat, 4 Mar 2023 16:46:26 -0900 Subject: [PATCH] Suppress warnings about advised functions getting re-defined --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index ca7d533..c836b72 100644 --- a/init.el +++ b/init.el @@ -53,6 +53,10 @@ (make-empty-file custom-file t)) (load custom-file) +;; Suppress advice warnings on startup +;; https://andrewjamesjohnson.com/suppressing-ad-handle-definition-warnings-in-emacs/ +(setq ad-redefinition-action 'accept) + ;; straight.el: the better package manager? ;; minified bootstrap (split lines if you want) (or not) ;; (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) (bootstrap-version 5)) (unless (file-exists-p bootstrap-file) (with-current-buffer (url-retrieve-synchronously "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el" 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) (straight-use-package 'use-package) (setq straight-use-package-by-default t)