5

What use-package declaration should one use when the name of the package (as present in MELPA or GNU ELPA) and the name of the main feature provided by that package are different? For instance wanderlust provides the feature wl rather than wanderlust. As a consequence, neither of the following will work:

(use-package wl
  :ensure t)

(use-package wanderlust
  :ensure t)
1

1 Answer 1

5

It seems that the answer is in use-package's manual/README, though not too well explained:

If you need to install a different package from the one named by use-package, you can specify it like this:

(use-package tex
  :ensure auctex)

Hence, in the case of wanderlust the solution would be:

(use-package wl
  :ensure wanderlust)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.