预览时出现Emacs markdown-mode错误:"bin/bash:markdown:未找到命令" [英] Emacs markdown-mode error on preview: "bin / bash: markdown: command not found"
问题描述
我在fedora 17上使用emacs24.我安装了markdown-mode
,但是每当我尝试通过在emacs中键入C-c C-c m
或C-c C-c p
导出文件时,都会出现此错误:
I am using emacs 24 on fedora 17. I installed markdown-mode
, but whenever I try to export a file by typing C-c C-c m
or C-c C-c p
in emacs, I got this error:
/bin/bash:markdown:未找到命令
/bin/bash: markdown: command not found
我读到这可能是path变量的问题,因此我通过在命令行中键入$ env
和在emacs中键入Esc-! env RET
来比较了env
变量.我发现两种情况下的路径变量描述都是相同的.
I read that this is probably an issue with the path variable, so I compared the env
variable by typing $ env
at the command line and Esc-! env RET
in emacs. I found the path variable description is the same in both cases.
这是什么错误?如何修复它并从emacs中执行markdown预览?
What is this error? How can I fix it and execute markdown previews from within emacs?
推荐答案
根据需要安装任何降价生成工具, 例如 pandoc .
Install any markdown generating tool as you like, for example pandoc.
然后将以下行添加到您的.emacs
文件中:
Then add the following line to your .emacs
file:
(custom-set-variables
'(markdown-command "/usr/local/bin/pandoc"))
这篇关于预览时出现Emacs markdown-mode错误:"bin/bash:markdown:未找到命令"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!