Add marginalia

This commit is contained in:
Andreas Zweili 2024-05-13 21:54:18 +02:00
parent ee811c75d2
commit 66a46fb3dc
3 changed files with 19 additions and 0 deletions

View File

@ -125,6 +125,7 @@ in
unstable.emacsPackages.corfu
unstable.emacsPackages.denote
unstable.emacsPackages.embark
unstable.emacsPackages.marginalia
];
};
home.file.".emacs.d/init.el".source = ./emacs.d/init.el;

View File

@ -0,0 +1,17 @@
;; -*- lexical-binding: t; -*-
;; https://github.com/minad/marginalia
;; Enable rich annotations using the Marginalia package
(use-package marginalia
;; 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))

View File

@ -20,6 +20,7 @@
;;(load-file (modules-path "az_consult.el"))
;;(load-file (modules-path "az_corfu.el"))
;;(load-file (modules-path "az_embark.el"))
;;(load-file (modules-path "az_marginalia.el"))
;; note taking and writing
(load-file (modules-path "az_deft_raw.el"))
(load-file (modules-path "az_deft.el"))