Please see the section of the ESS manual on indentation. The manual is in the doc/html/ subdirectory of the ESS distribution. It is in file:///C:/emacs/ess/doc/html/index.html on my windows computer. Search for "indent" and modify the variables listed there. Rich