Defer loading with use-package
andyleejordan opened this issue · comments
Hi @justbur,
Do you know how to defer the loading of evil-ediff
with use-package
? I just don't know what :bind
or :mode
to use to defer it (since I don't want it bound or loaded with a file). I think I'd need to (use-package ediff :config (use-package evil-ediff))
but am not sure, as evil-ediff
requires both evil
and ediff
, and I'd want it loaded on demand (long after evil
is loaded). Do you think this is accomplishable?
Try this
(use-package ediff
:defer t
:config (require 'evil-ediff))
@andschwa did that work?
Yes! Sorry for taking so long to get back to you.
(use-package ediff
:defer t
:config (use-package evil-ediff))
I was honestly surprised, since I expected ediff's bindings to longer be loaded; but it appears those auto-loads are added regardless. This worked great. Thanks @justbur!