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
You just need to pick and install a markdown parser:
gem install rdiscount
).yum install python-markdown2
)Then, in emacs:
M-x customize-mode RET markdown-mode
Set 'Markdown Command' to the name of the executable you installed -- for example, rdiscount
or /usr/bin/markdown2
.
Install any markdown generating tool as you like, for example pandoc.
Then add the following line to your .emacs
file:
(custom-set-variables
'(markdown-command "/usr/local/bin/pandoc"))
You need to setting up the markdown-command, there is a thread about displaying it in github way, through pandoc.
This error occurs when you do not have a markdown parser installed. Installing one is simple with brew. From the command line:
brew install markdown
This should result in something like:
==> Downloading http://daringfireball.net/projects/downloads/Markdown_1.0.1.zip
######################################################################## 100.0%
/usr/local/Cellar/markdown/1.0.1: 2 files, 40K, built in 2 seconds
Before running that command, I had the same error you did. After running that command, which installs a markdown parser on your system, the emacs commands C-c C-c m
and C-c C-c p
worked as expected by opening an HTML version of my markdown file in either another buffer or the browser, respectively.
init.el
:(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/"))
(package-initialize)
M-x package-refresh-contents
M-x package-install RET markdown-mode RET
brew install pandoc
#OR
sudo apt-get install pandoc
which pandoc
# returns /usr/local/bin/pandoc
init.el
:(custom-set-variables
'(markdown-command "/usr/local/bin/pandoc"))