I am currently trying to install ENSIME for emacs 24.3.1 following the instructions at https://github.com/ensime/ensime-emacs under the quick start; I've added
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
to my .emacs file, as instructed. However, when I restart and do M-x package install [RETURN]ensime[RETURN], it returns [No Match] and indeed, I can't find it when I list the packages. However, I can easily find it at http://melpa.milkbox.net/#; what would be causing the discrepancy between what is available through the website and when can be installed from emacs?
Any help is much appreciated; Thank you!
'("melpa" . "http://melpa.milkbox.net/packages/"))
- note the missingt
argument at the end. Can't remember if this fixed the problem for me or not, but it's easy enough to try. – PasselM-x packaged refresher contents
beforepackage-install
? – RosecanM-: package-archives
you can see the contents of the variablepackage-archives
. You might find that it is not what you thought you set it to. In my case as some point I had it customized in custom-set-variables (auto saved at end of .emacs) and this overrides the value I set earlier. – AlodieM-x package-refresher-contents
- it really helped! Thanks! – MonaganM-x package-refresh-contents
, this worked for me. – Hughmanick