mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-02 14:53:38 -05:00
selectrum: update bindings
This commit is contained in:
@@ -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)))
|
||||
|
||||
|
Reference in New Issue
Block a user