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 of 992bd8f7e2, 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:
Henrik Lissner 2022-06-17 20:43:18 +02:00
parent 196adfb28d
commit 24c658bae9
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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)