summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-02-02 22:48:49 -0500
committerKyle Meyer <kyle@kyleam.com>2015-02-02 22:48:49 -0500
commit616f49656e1bebd76c8261eacc3d9259673fbef4 (patch)
tree31772fadf80ab01f67d2affd632e4833628e503a /lisp
parentf62cf377f1d5bf10a7927a3c1ab79144f83d1eeb (diff)
downloademacs.d-616f49656e1bebd76c8261eacc3d9259673fbef4.tar.gz
Change default ESS style
Keep all continued statements and expression at the original level.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-ess.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/init-ess.el b/lisp/init-ess.el
index 29d570e..a71e11d 100644
--- a/lisp/init-ess.el
+++ b/lisp/init-ess.el
@@ -3,6 +3,20 @@
(setq ess-smart-S-assign-key ";")
+(after 'ess-mode
+ (ess-add-style
+ 'km
+ '((ess-first-continued-statement-offset . 4)
+ (ess-continued-statement-offset . 0)
+ (ess-arg-function-offset-new-line . nil)
+ (ess-arg-function-offset . nil)
+ (ess-expression-offset . nil)
+ (ess-indent-level . 4)
+ (ess-brace-offset . 0)
+ (ess-else-offset . 0)
+ (ess-close-brace-offset . 0))))
+(setq ess-default-style 'km)
+
(add-to-list 'auto-mode-alist '("\\.[rR]\\'" . R-mode))
(provide 'init-ess)