Emacs 初始化文件无法打开加载文件 OS X



我正在尝试向 emacs 添加haskell-mode,但我遇到了错误:cannot open load file .

这就是我所做的...

首先,我从这里下载了haskell-mode版本2.4的tar文件:http://projects.haskell.org/haskellmode-emacs/

这样做之后,我的/Users/username/Downloads/...中有一个充满名为 haskell-mode-2.4 的模式和模块的目录。

下一步,我将其添加到我的~/.emacs.d/init.el中(注意:我也尝试将其添加到我的 ~/.emacs 中),如此处指定......http://doc.gnu-darwin.org/haskell-mode/installation-guide.html :

(load "/Users/username/Downloads/haskell-mode-2.4")
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)

但是在完成所有这些操作后,我得到一个错误:cannot open load file.

为什么会这样?可能是我的 emacs 版本不支持haskell-mode吗?

尝试以下操作:

(load "/Users/username/Downloads/haskell-mode-2.8.0/haskell-site-file")

另外,我建议从下载移动到其他文件夹,但这偏离了主题;)

最新更新