Skip to content

Instantly share code, notes, and snippets.

@mikelove
Last active September 22, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikelove/77fb7be513e14041df9f to your computer and use it in GitHub Desktop.
Save mikelove/77fb7be513e14041df9f to your computer and use it in GitHub Desktop.
markdown mode and polymode for emacs Rmd support
;; obtain from http://jblevins.org/projects/markdown-mode/
(load "~/path/to/markdown-mode.el")
(autoload 'markdown-mode "markdown-mode"
"Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
;; obtain from https://github.com/vitoshka/polymode
(setq load-path
(append '("~/path/to/polymode/" "~/path/to/polymode/modes")
load-path))
(require 'poly-R)
(require 'poly-markdown)
(add-to-list 'auto-mode-alist '("\\.Rmd\\'" . poly-markdown+r-mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment