|
|
;; Examples of polymode configuration. Choose what suits your needs and place
|
|
|
;; into your .emacs file.
|
|
|
|
|
|
;;; MARKDOWN
|
|
|
(add-to-list 'auto-mode-alist '("\\.md" . poly-markdown-mode))
|
|
|
|
|
|
;;; ORG
|
|
|
(add-to-list 'auto-mode-alist '("\\.org" . poly-org-mode))
|
|
|
|
|
|
;;; R related modes
|
|
|
(add-to-list 'auto-mode-alist '("\\.Snw" . poly-noweb+r-mode))
|
|
|
(add-to-list 'auto-mode-alist '("\\.Rnw" . poly-noweb+r-mode))
|
|
|
(add-to-list 'auto-mode-alist '("\\.Rmd" . poly-markdown+r-mode))
|
|
|
(add-to-list 'auto-mode-alist '("\\.rapport" . poly-rapport-mode))
|
|
|
(add-to-list 'auto-mode-alist '("\\.Rhtml" . poly-html+r-mode))
|
|
|
(add-to-list 'auto-mode-alist '("\\.Rbrew" . poly-brew+r-mode))
|
|
|
(add-to-list 'auto-mode-alist '("\\.Rcpp" . poly-r+c++-mode))
|
|
|
(add-to-list 'auto-mode-alist '("\\.cppR" . poly-c++r-mode))
|
|
|
|
|
|
;;; ERB modes
|
|
|
(add-to-list 'auto-mode-alist '("\\.js.erb$" . poly-javascript-erb-mode))
|
|
|
(add-to-list 'auto-mode-alist '("\\.coffee.erb$" . poly-coffee-erb-mode))
|
|
|
(add-to-list 'auto-mode-alist '("\\.html.erb$" . poly-html-erb-mode))
|
|
|
|
|
|
;;; Slim mode
|
|
|
(add-to-list 'auto-mode-alist '("\\.slim$" . poly-slim-mode))
|
|
|
|
|
|
;; Verilog
|
|
|
(add-to-list 'auto-mode-alist '("\\.sv" . poly-verilog+perl-mode))
|
|
|
(add-to-list 'auto-mode-alist '("\\.svh" . poly-verilog+perl-mode))
|
|
|
|
|
|
(provide 'polymode-configuration)
|