Emacs polymode gives error when opening file

蓝咒 提交于 2019-12-11 07:16:08

问题


I downloaded the polymode zip-file from GitHub, open the zip-file which gives a folder named polymode-master . I renamed the folder to polymode and put it on my .emacs.d folder. Then I inserted the following lines into my .emacs file:

;; Polymode
(setq load-path
      (append '("~/.emacs.d/polymode/" "~/.emacs.d/polymode/modes")
          load-path))

(require 'poly-R)
(require 'poly-markdown)

When I open a file with emacs it gives me the following error:

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.

Any idea what I did wrong?
Thanks for help.

PS:
Windows 7
GNU Emacs 24.3.1
ESS


回答1:


polymode depends on markdown-mode for its Markdown support, and it doesn't look like you have it installed.

Since you're using Emacs 24, which has package.el built-in, I strongly recommend installing it via MELPA stable (also available in regular MELPA and Marmalade), but if you're still installing packages manually you can find it on its website.



来源:https://stackoverflow.com/questions/27022431/emacs-polymode-gives-error-when-opening-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!