Variable: marginalia-mode
marginalia-mode is a customizable variable defined in marginalia.el.
Value
nil
Documentation
Non-nil if Marginalia mode is enabled.
See the marginalia-mode(var)/marginalia-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 marginalia-mode(var)/marginalia-mode(fun).
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
;;;###autoload
(define-minor-mode marginalia-mode
"Annotate completion candidates with richer information."
:global t :group 'marginalia
(if marginalia-mode
(progn
;; Remember `this-command' in order to select the annotation function.
(add-hook 'minibuffer-setup-hook #'marginalia--minibuffer-setup)
;; Replace the metadata function.
(advice-add (compat-function completion-metadata-get) :before-until #'marginalia--completion-metadata-get)
(advice-add #'completion-metadata-get :before-until #'marginalia--completion-metadata-get)
;; Record completion base position, for `marginalia--full-candidate'
(advice-add #'completion-all-completions :filter-return #'marginalia--base-position))
(advice-remove #'completion-all-completions #'marginalia--base-position)
(advice-remove (compat-function completion-metadata-get) #'marginalia--completion-metadata-get)
(advice-remove #'completion-metadata-get #'marginalia--completion-metadata-get)
(remove-hook 'minibuffer-setup-hook #'marginalia--minibuffer-setup)))