Function: marginalia--minibuffer-setup
marginalia--minibuffer-setup is a natively compiled function defined
in marginalia.el.
Signature
(marginalia--minibuffer-setup)
Documentation
Setup the minibuffer for Marginalia.
Remember this-command for marginalia-classify-by-command-name.
Source Code
;; Defined in /nix/store/hym71by08nv7fpgl7asan3dvidx05yya-emacs-packages-deps/share/emacs/site-lisp/elpa/marginalia-20260926.1228/marginalia.el
(defun marginalia--minibuffer-setup ()
"Setup the minibuffer for Marginalia.
Remember `this-command' for `marginalia-classify-by-command-name'."
;; TODO: On Emacs 32 we can use `current-minibuffer-command'. See Emacs
;; bug#80815 and also `embark--record-this-command'.
(setq marginalia--cache t marginalia--command this-command)
;; Reset cache if window size changes, recompute alignment
(add-hook 'window-state-change-hook #'marginalia--cache-reset nil 'local)
(add-hook 'context-menu-functions #'marginalia--context-menu nil t)
(marginalia--cache-reset))