diff --git a/config_new.org b/config_new.org index 51e576b..e4e294b 100644 --- a/config_new.org +++ b/config_new.org @@ -237,6 +237,27 @@ ) #+end_src +** Marginalia + +#+begin_src emacs-lisp +;; Enable rich annotations using the Marginalia package +(use-package marginalia + :ensure t + ;; Bind `marginalia-cycle' locally in the minibuffer. To make the binding + ;; available in the *Completions* buffer, add it to the + ;; `completion-list-mode-map'. + :bind (:map minibuffer-local-map + ("M-A" . marginalia-cycle)) + + ;; The :init section is always executed. + :init + + ;; Marginalia must be activated in the :init section of use-package such that + ;; the mode gets enabled right away. Note that this forces loading the + ;; package. + (marginalia-mode)) +#+end_src + * General config ** Delete trailing whitespaces