Use marginalia for annotations in selection interfaces
This commit is contained in:
parent
91faf61ee6
commit
412ced231b
1 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue