(use-package dired) complains:

Debugger entered--Lisp error: (error "Package ‘dired-’ is unavailable")

But I see others' emacs configurations do use (use-package dired), for example:




What's needed to make dired use-package-able? Is this something to do with cask?

  • 1
    Have you set use-package-always-ensure?
    – npostavs
    Sep 4, 2016 at 3:46
  • 1
    Yes! And :ensure nil stops it complaining. Thank you, why not add that as an answer? Sep 4, 2016 at 11:45
  • By the way, I guess the fact that the argument is dired means little here, in that case, and it's just functioning as a label... correct? Sep 4, 2016 at 11:46
  • It's one example of a non-package.el "package", see my answer.
    – npostavs
    Sep 4, 2016 at 13:47
  • In 2019, do use-package and use-package-always-ensure still exist in the latest Emacs?
    – Lassi
    Nov 29, 2019 at 19:34

1 Answer 1

Debugger entered--Lisp error: (error "Package ‘dired-’ is unavailable")

You get this error when package.el tries to install a non-existent package. use-package will attempt to install the given package name if you pass or :ensure t or you have set use-package-always-ensure to non-nil. Use :ensure nil to override use-package-always-ensure. You need to do this for any non-package.el package (of which dired is one example) that you use-package with.

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.