-
Notifications
You must be signed in to change notification settings - Fork 344
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
Can't install by following README instructions #704
Comments
Could it be because it's already installed? |
That seems to be it. Confusingly package-install claims a package doesn't exist if it's installed. |
Packages that already installed are listed at the bottom, the default order is available packages, installed packages and finally built-in packages. Can you find I've faced some issues with package list, finally I've got it to work properly having following config (require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(when (< emacs-major-version 24)
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize)
;; custom load-path locations goes here Note, I'm not using MELPA stable. |
Oh, and I believe you need to invoke (defun g/packages-installed-p ()
"Determine if all packages are installed."
(cl-loop for pkg in g/packages
when (not (package-installed-p pkg)) do (cl-return nil)
finally (cl-return t)))
(unless (g/packages-installed-p)
(message "%s" "Refreshing packages database…")
(package-refresh-contents)
(dolist (pkg g/packages)
(when (not (package-installed-p pkg))
(package-install pkg)))) |
I'm unable to find the haskell-mode package when using package-install. I have this in my init:
A manual package content refresh and package-install doesn't list the package either.
The text was updated successfully, but these errors were encountered: