blob: a71e11d4e9806dbde0974d8f4a49c40f4a7ee4c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
(autoload 'R-mode "ess-site")
(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)
|