Emacs polymode打开文件时出错 [英] Emacs polymode gives error when opening file

查看:154
本文介绍了Emacs polymode打开文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从GitHub 下载了多模式zip文件 ,打开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打开文件时,会给我以下错误:

 警告(初始化):加载`c:/Users/ab/.emacs'时发生错误:

文件错误:无法打开加载文件,markdown-mode

为确保正常运行,您应该调查并删除
导致您的初始化文件中的错误。启动Emacs与
`--debug-init'选项来查看完整的错误回溯。

任何想法我做错了什么?

感谢您的帮助。 >

PS:

Windows 7

GNU Emacs 24.3.1

ESS

解决方案

polymode 取决于 markdown-mode 的Markdown支持,因为您使用的是Emacs 24,它已经建立了$ code> package.el - 我强烈建议安装它通过MELPA stable (也可在常规MELPA Marmalade ),但是如果您仍然手动安装软件包,您可以找到它上其网站


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

解决方案

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.

这篇关于Emacs polymode打开文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆