diff --git a/modules/emacs/init.el b/modules/emacs/init.el index 9fb07332..4d94cbab 100644 --- a/modules/emacs/init.el +++ b/modules/emacs/init.el @@ -44,7 +44,7 @@ "ws" '(split-window-horizontally :which-key "split horizontal") "wd" '(delete-window :which-key "delete") - "x" '(M-x :which-key "exec") + "x" '(execute-extended-command :which-key "exec") ) ) @@ -136,6 +136,18 @@ ) ) +;; Annotations in selection interface +(use-package marginalia + :demand t + :custom + (marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light nil)) + :config + (marginalia-mode) + (advice-add #'marginalia-cycle :after (lambda () (selectrum-exhibit 'keep-selected))) + :general + (:keymaps 'minibuffer-local-map "M-a" 'marginalia-cycle) + ) + ;; Markdown syntax support (use-package markdown-mode :commands (markdown-mode gfm-mode)