; 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.
This commit is contained in:
Philip Kaludercic 2026-02-12 18:20:15 +01:00
parent 92f1d0b5d5
commit 02af0e93a0
No known key found for this signature in database

View file

@ -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))