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

Emacs init file cannot open load file OS X

我正在尝试将 haskell-mode 添加到 emacs,但我 运行 进入错误: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")

另外,我建议从“下载”移动到另一个文件夹,但那是题外话 ;)