在 MELPA 列出的软件包,但没有在软件包安装中找到

我目前正在尝试安装 ENSIME 的 emacs 24.3.1下的指示,在 https://github.com/ensime/ensime-emacs快速启动; 我已经添加

    (require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)


(when (not package-archive-contents)
(package-refresh-contents))

我的。符合指示的 emacs 文件。然而,当我重新启动并执行 M-x 包安装[ RETURN ] senme [ RETURN ]时,它返回[ No Match ] ,而且实际上,当我列出包时,我找不到它。但是,我可以很容易地找到它在 http://melpa.milkbox.net/#; 什么会导致什么是可以通过网站之间的差异,什么时候可以从 emacs 安装?

非常感谢您的帮助,谢谢!

40848 次浏览

In my .emacs file I have

;; packages
(when (>= emacs-major-version 24)
(require 'package)
(package-initialize)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
)

Then, M-x package-list-packages

C-s ensime

and there you go:

ensime 20140718.... available ENhanced Scala Interaction Mode for Emacs

Are you sure your emacs can actually get access to internet?

I had to run M-x package-refresh-contents. Once I did that, the files were found.

Here's what my .emacs looks like:

(cond
((>= 24 emacs-major-version)
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("melpa-stable" . "http://stable.melpa.org/packages/") t)
(package-refresh-contents)
)
)

After doing the usual editing of .emacs to make melpa avalaible and restarting Emacs, I searched the list of packages for the one I wanted.

M-x package-list-packages
C-s <package_name>

Then I clicked on the name of the package and pressed the install button. I am unsure as to why M-x package-install RET <package_name> failed, but clicking the install button worked for me.