selectrum: update bindings

This commit is contained in:
Itai Y. Efrat 2021-04-29 12:32:04 +03:00
parent a3c978ba36
commit b9e34835c7
3 changed files with 16 additions and 15 deletions

View file

@ -13,7 +13,10 @@
selectrum-max-window-height 17)
(defadvice! +selectrum-refresh-on-cycle (&rest _)
:after 'marginalia-cycle
(when (bound-and-true-p selectrum-mode) (selectrum-exhibit))))
(when (bound-and-true-p selectrum-mode) (selectrum-exhibit)))
(map! :map selectrum-minibuffer-map
"C-o" #'embark-act
"C-c C-o" #'embark-export))
(use-package! selectrum-prescient
:when (featurep! +prescient)
@ -70,7 +73,8 @@
[remap switch-to-buffer] #'consult-buffer
[remap switch-to-buffer-other-window] #'consult-buffer-other-window
[remap switch-to-buffer-other-frame] #'consult-buffer-other-frame
[remap yank-pop] #'consult-yank-pop)
[remap yank-pop] #'consult-yank-pop
[remap describe-bindings] #'embark-bindings)
:config
(recentf-mode)
(setq consult-project-root-function #'doom-project-root)
@ -101,6 +105,13 @@
#'which-key--hide-popup-ignore-command)
embark-become-indicator embark-action-indicator)
:config
(map!
:map embark-file-map
:desc "Open Dired on target" "j" #'ffap-dired
:desc "Open target with sudo" "s" #'sudo-edit
:desc "Open target with vlf" "l" #'vlf
:map embark-file-map
:desc "Cycle marginalia views" "A" #'marginalia-cycle )
(let ((embark-quit-after-action nil))
(map! :map minibuffer-local-map "C-SPC" #'embark-default-action)))