Variable: package-autosuggest-mode
package-autosuggest-mode is a customizable variable defined in
package-activate.el.gz.
Value
nil
Documentation
Non-nil if Package-Autosuggest mode is enabled.
See the package-autosuggest-mode(var)/package-autosuggest-mode(fun) command
for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node (emacs)Easy Customization)
or call the function package-autosuggest-mode(var)/package-autosuggest-mode(fun).
Probably introduced at or before Emacs version 31.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/package-activate.el.gz
;;;###autoload
(define-minor-mode package-autosuggest-mode
"Enable automatic suggestions for installing add-on packages.
When this minor mode is turned on, Emacs will suggest installing
add-on packages from ELPA whenever it determines that the buffer's
contents and editing could benefit from a better major mode.
See the variable `package-autosuggest-style' for controlling the style
of showing these suggestions.
Customize the variable `package-autosuggest-once' to control repetitive
suggestions."
:global t :group 'package
;; :initialize #'custom-initialize-delay
(funcall (if package-autosuggest-mode #'add-hook #'remove-hook)
'after-change-major-mode-hook
#'package--autosuggest-after-change-mode))