summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)