Emacs polymode gives error when opening file

664 views Asked by At

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

There are 1 answers

1
Chris On BEST ANSWER

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.