Last active
September 22, 2015 14:21
-
-
Save mikelove/77fb7be513e14041df9f to your computer and use it in GitHub Desktop.
markdown mode and polymode for emacs Rmd support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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