我下载了polyode zip-file from GitHub,打开zip文件,该文件提供了一个名为 polymode-master 的文件夹。我将文件夹重命名为 polymode 并将其放在我的.emacs.d文件夹中。然后我将以下行插入我的.emacs文件中:
;; Polymode
(setq load-path
(append '("~/.emacs.d/polymode/" "~/.emacs.d/polymode/modes")
load-path))
(require 'poly-R)
(require 'poly-markdown)
当我用emacs打开文件时,它给出了以下错误:
Warning (initialization): An error occurred while loading `c:/Users/ab/.emacs':
File error: Cannot open load file, markdown-mode
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
知道我做错了什么吗? 谢谢你的帮助。
PS:
Windows 7
GNU Emacs 24.3.1
ESS
答案 0 :(得分:1)
polymode
depends on markdown-mode
for its Markdown support,看起来你没有安装它。
由于您使用的是内置package.el
的Emacs 24,因此我强烈建议您安装via MELPA stable(也可在regular MELPA和Marmalade中使用),但如果您仍在手动安装软件包,则可以找到它on its website。