El-Get文档说El-Get supports
package.el
MELPA文档显示how to use MELPA with
package.el
。我如何能
使用El-Get安装MELPA软件包?
尝试失败
我正在使用Emacs 23,因此package.el
不属于Emacs。一世
使用El-Get安装了package.el
,但我不确定如何制作
El-了解MELPA。我尝试添加
;; Based on http://melpa.milkbox.net/#/getting-started .
(require 'package)
(add-to-list 'package-archives
;; The 't' means to append, so that MELPA comes after the more
;; stable ELPA archive.
'("melpa" . "http://melpa.milkbox.net/packages/") t)
;; Add ELPA if necessary. Looking at the El-Get package.rcp recipe in
;; ~/local/opt/el-get/recipes it seems this is probably unnecessary.
(when (< emacs-major-version 24)
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize)
到El-Get的
init-package.el
中,但我仍然没有请参阅El-Get中的MELPA软件包(例如
M-x el-get-list-packages
)。更新
我加了
(require 'el-get-elpa)
;; Build the El-Get copy of the package.el packages if we have not
;; built it before. Will have to look into updating later ...
(unless (file-directory-p el-get-recipe-path-elpa)
(el-get-elpa-build-local-recipes))
按照接受的答案中的建议添加到我的
init-package.el
中,现在一切正常。
最佳答案
试试这个:
(require 'el-get-elpa)
然后调用
M-x el-get-elpa-build-local-recipes
:它使用来自elpa的配方创建特殊目录../recipes/elpa
,并且el-get现在可以看到新配方。
关于emacs - 如何通过El-Get安装MELPA软件包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23165158/