Use vertico-repeat and bind consult search commands to a keymap
This commit is contained in:
parent
b5f2f7e615
commit
98c3c46e45
@ -4,13 +4,27 @@
|
||||
|
||||
;; First Vertico, which provides the core incremental minibuffer completion engine
|
||||
(use-package vertico
|
||||
:straight (:files (:defaults "extensions/vertico-repeat.el"))
|
||||
:init
|
||||
(vertico-mode))
|
||||
|
||||
(use-package vertico-repeat
|
||||
:straight (:type built-in)
|
||||
:after vertico
|
||||
:config
|
||||
(add-hook 'minibuffer-setup-hook #'vertico-repeat-save)
|
||||
:general
|
||||
(leader-map "r" #'vertico-repeat))
|
||||
|
||||
;; Save history in order to persist sort order across emacs sessions
|
||||
(use-package savehist
|
||||
:after vertico-repeat
|
||||
:init
|
||||
(savehist-mode))
|
||||
(savehist-mode)
|
||||
:custom
|
||||
(savehist-additional-variables '(projectile-project-command-history
|
||||
evil-jumps-history
|
||||
vertico-repeat-history)))
|
||||
|
||||
;; Then orderless, which adds the ability to filter completions in an intuitive way
|
||||
(use-package orderless
|
||||
@ -155,7 +169,8 @@ targets."
|
||||
(flycheck-command-map "!" #'consult-flycheck))
|
||||
|
||||
(use-package embark-consult
|
||||
:defer 1)
|
||||
:general
|
||||
(leader-map "/" embark-consult-search-map))
|
||||
|
||||
;; Make grep-like embark collect buffers editable
|
||||
(use-package wgrep
|
||||
|
Loading…
Reference in New Issue
Block a user