-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guidance on loading package extensions like vertico-directory #10
Comments
Thank you for helping me test Elpaca out. The asynchronous nature of Elpaca takes some getting used to and I definitely need to improve the idioms available for common cases like the one described here. Try the following and let me know if it works: This should install vertico and configure it once Elpaca's queue has processed. ;;bootstrapping snippet omitted
;;installation of use-package omitted
(elpaca-use-package (vertico :files (:defaults "extensions/*"))
:defer t
:bind (:map vertico-map
("M-DEL" . vertico-directory-delete-word))
:hook (rfn-eshadow-update-overlay . vertico-directory-tidy)
:init (vertico-mode)) And this should execute the use-package call in the same queue, just after configuring vertico. (elpaca nil
(use-package vertico-directory
:after vertico
:bind (:map vertico-map
("M-DEL" . vertico-directory-delete-word))
:hook (rfn-eshadow-update-overlay . vertico-directory-tidy)))
straight implements a use-package keyword which affects the expansion of the use-package macro. It basically expands to: (progn
(straight-use-package name)
;;rest of use-package declaration expansion
) The added challenge with Elpaca is getting that to play nice asynchronously. |
That worked like a charm after rebuilding vertico. Thanks!
I'll try doing something a little more rigorous later, but if I remember right, I was seeing ~0.5–1.2s on average with straight.el; now I'm getting ~0.2–0.25s with elpaca |
Unfortunately I can't get it to work: (elpaca-use-package (vertico :files (:defaults "extensions/*"))
:init
(vertico-mode))
(elpaca nil
(use-package vertico-flat
:after vertico)) use-package generates a warning that vertico-flat couldn't be loaded. However, when enabling use-package's verbose mode, it says
Is it stil the correct way to load vertico's extensions? |
@bram85: please open a new support issue here: Include the use-package warning and any output from |
Resolved, I forgot to call |
Hi there!
First off: this is amazing. The load time on my Emacs is just insane now. Thank you so much!
I use vertico, which has a number of extensions that come bundled with the package. I would like to get
vertico-directory
working.If I were using
straight.el
, I would just put this:Or even this after
(use-package vertico :init (vertico-mode))
: (taken from vertico's README)How would I do this with elpaca?
(elpaca-use-package vertico-directory)
can't find any repository. I'm honestly not sure what magic use-package and straight are doing to get it to work in the previous examples, but work it does.The text was updated successfully, but these errors were encountered: