summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-04-03 23:06:06 -0400
committerKyle Meyer <kyle@kyleam.com>2014-04-03 23:06:06 -0400
commitef301a56bd6a3b57e35df7b63ad1f5c087a8bb96 (patch)
tree53e804e64eefe97dbb86b6e2222bd913ac71cea4
parent1e0ef8aeb0b7b4123d267b8ce91d7ace5ad4f0b4 (diff)
downloademacs.d-ef301a56bd6a3b57e35df7b63ad1f5c087a8bb96.tar.gz
Autoload ESS for R files
-rw-r--r--init.el2
-rw-r--r--lisp/init-ess.el6
2 files changed, 7 insertions, 1 deletions
diff --git a/init.el b/init.el
index b0a2f75..88fbf87 100644
--- a/init.el
+++ b/init.el
@@ -27,7 +27,7 @@
(require 'init-shell)
(require 'init-haskell)
(require 'init-python)
-(require-package 'ess)
+(require 'init-ess)
(require-package 'lua-mode)
(require 'init-tex)
diff --git a/lisp/init-ess.el b/lisp/init-ess.el
new file mode 100644
index 0000000..dfaec1d
--- /dev/null
+++ b/lisp/init-ess.el
@@ -0,0 +1,6 @@
+(require-package 'ess)
+
+(autoload 'R-mode "ess-site")
+(add-to-list 'auto-mode-alist '("\\.[rR]\\'" . R-mode))
+
+(provide 'init-ess)