package-install不会加载包的文件

时间:2015-02-04 04:22:42

标签: emacs elisp

M-x package-install
projectile

Projectile在~/.emacs.d/elpa/projectile-20150201.1134/*.el成功安装 然后将(projectile-global-mode)添加到.emacs,但在重新启动emacs时,它会因为犯规而哭泣,

Symbol's function definition is void: projectile-global-mode

我可以将projectile安装的文件夹添加到加载路径,但为什么emacs不会自动加载其melpa安装的包?

1 个答案:

答案 0 :(得分:4)

在您致电projectile时似乎没有(projectile-global-mode)加载。我怀疑您在(package-initialize)文件中(projectile-global-mode)之前错过了(package-initialize).emacs

也许您想检查.emacs文件以确保订单。

(package-initialize)
...
(projectile-global-mode)