Hello,

When I open a *.Rnw document_without_ having loaded markdown mode and
polymode, I am able to knit and PDF-ify the document by doing first "M-n r"
(for ess-swv-knit) and then "M-n P".

When markdown mode and polymode _are_ loaded (using the emacs commands
copied below), I get very nice document highlighting, but neither of those
keyboard shortcut works. Typing "M-n r" just gets me the message "M-n r is
undefined", and likewise when I type "M-n P".

Is there something wrong with the commands I'm using to load markdown mode
and/or polymode? Alternatively, is there some way I can make polymode aware
of my intended meaning of those two keyboard shortcuts?

For the record, I am using GNU Emacs 24.3.1 and ess-version: 13.09 [svn:
5778 (2013-09-27)] on a Windows 7 machine.

Here is the code that I use to load markdown mode and Vitalie Spinu's
polymode.

;; Markdown mode, needed by Vitalie's polymode.
;; From http://jblevins.org/projects/markdown-mode/
(autoload 'markdown-mode "markdown-mode"
   "Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))

;; Add polymode to load path
;; From https://github.com/vitoshka/polymode
(add-to-list 'load-path (expand-file-name "~/.emacs.d/polymode"))
(add-to-list 'load-path (expand-file-name "~/.emacs.d/polymode/modes"))
(require 'poly-R)
(require 'poly-markdown)


Thanks,

Josh

	[[alternative HTML version deleted]]

