From 02af0e93a0e63e6ff8354a778fe186ceedb11ebe Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Thu, 12 Feb 2026 18:20:15 +0100 Subject: [PATCH] ; Reset :initialize for 'package-autosuggest-mode' * lisp/emacs-lisp/package-activate.el (package-autosuggest-mode): We don't need a special initializer for the minor mode, if we are not enabling the option OOTB. --- lisp/emacs-lisp/package-activate.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/package-activate.el b/lisp/emacs-lisp/package-activate.el index 4a0a9b79fb5..1689d985c28 100644 --- a/lisp/emacs-lisp/package-activate.el +++ b/lisp/emacs-lisp/package-activate.el @@ -674,7 +674,7 @@ This function should be added to `after-change-major-mode-hook'." (define-minor-mode package-autosuggest-mode "Enable the automatic suggestion and installation of packages." :global t :group 'package - :initialize #'custom-initialize-delay + ;; :initialize #'custom-initialize-delay (funcall (if package-autosuggest-mode #'add-hook #'remove-hook) 'after-change-major-mode-hook #'package--autosuggest-after-change-mode))