summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-04-02 12:25:47 +0200
committerAlan Pearce2023-04-02 12:25:47 +0200
commitdf6737ebdb7926de959038ea96178aebd1a432cb (patch)
treeb08d22d06ba4febaa27aa49307d19088ff8635d8
parente9aedf84896614846976363075229f8c7f0cce1f (diff)
downloadnixfiles-df6737ebdb7926de959038ea96178aebd1a432cb.tar.lz
nixfiles-df6737ebdb7926de959038ea96178aebd1a432cb.tar.zst
nixfiles-df6737ebdb7926de959038ea96178aebd1a432cb.zip
emacs: show explanations of minibuffer completion candidates
-rw-r--r--user/emacs/init.el5
-rw-r--r--user/settings/emacs.nix1
2 files changed, 6 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index e8c3bed0..d7aad0fa 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -229,6 +229,11 @@ With two prefix arguments, write out the day and month name."
   :after vertico
   :ghook '(vertico-mode-hook))
 
+(use-package marginalia
+  :general (:keymaps 'minibuffer-local-map
+                     "M-A" #'marginalia-cycle)
+  :init (marginalia-mode +1))
+
 (setq completion-ignore-case t
       read-buffer-completion-ignore-case t
       read-file-name-completion-ignore-case t
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 0f6176cb..e585ebdc 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -131,6 +131,7 @@ in
         lispyville
         magit
         markdown-mode
+        marginalia
         modus-themes
         doom-modeline
         org-journal