fix(vertico): ensure load order of consult & embark
The precise semantics of use-package's :after keyword is janky (see jwiegley/use-package#829) and, in the case of992bd8f7e2
, causes subtle breakage. For one, the remappings in the following :init block were deferred until embark loaded, so they weren't available at startup, so they reverted to their old (often vastly inferior) predecessors, like recentf-open-files instead of consult-recent-files. Amend:992bd8f7e2
This commit is contained in:
parent
196adfb28d
commit
24c658bae9
1 changed files with 4 additions and 2 deletions
|
@ -98,8 +98,8 @@ orderless."
|
||||||
|
|
||||||
|
|
||||||
(use-package! consult
|
(use-package! consult
|
||||||
:after (embark)
|
:defer t
|
||||||
:init
|
:preface
|
||||||
(define-key!
|
(define-key!
|
||||||
[remap apropos] #'consult-apropos
|
[remap apropos] #'consult-apropos
|
||||||
[remap bookmark-jump] #'consult-bookmark
|
[remap bookmark-jump] #'consult-bookmark
|
||||||
|
@ -232,6 +232,8 @@ orderless."
|
||||||
(:leader
|
(:leader
|
||||||
:desc "Actions" "a" #'embark-act)) ; to be moved to :config default if accepted
|
:desc "Actions" "a" #'embark-act)) ; to be moved to :config default if accepted
|
||||||
:config
|
:config
|
||||||
|
(require 'consult)
|
||||||
|
|
||||||
(set-popup-rule! "^\\*Embark Export Grep" :size 0.35 :ttl 0 :quit nil)
|
(set-popup-rule! "^\\*Embark Export Grep" :size 0.35 :ttl 0 :quit nil)
|
||||||
|
|
||||||
(defadvice! +vertico--embark-which-key-prompt-a (fn &rest args)
|
(defadvice! +vertico--embark-which-key-prompt-a (fn &rest args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue