Marginalia

about | blog | config | notes | github

1. Marginalia in the Minibuffer

marginalia-mode provides really nice annotations to minibuffer completions

2. Configuration

2.1. Setup Vertico

Before anything else, we should make sure Vertico is setup properly.

(require 'init-vertico)

We also use All The Icons to display custom icons in the marginalia output. We make use of all-the-icons-completion package which adds icons t ocompletion items.

(require 'init-all-the-icons)

(use-package all-the-icons-completion
  :after all-the-icons
  :hook (marginalia-mode . all-the-icons-completion-marginalia-setup)
  :init (all-the-icons-completion-mode))

2.2. Package Install

Setup marginalia but make sure we don't load it up before Vertico.

(use-package marginalia
  :after vertico
  :bind (:map minibuffer-local-map
         ("M-m" . marginalia-cycle))
  :init (marginalia-mode))

2.3. Feature Provide

(provide 'init-marginalia)

Created: 2021-11-13

Emacs 26.1 (Org mode 9.5)