[ESS] Yet another indentation question: indentation after parenthese

Vitalie Spinu spinuvit at gmail.com
Fri Dec 16 12:32:24 CET 2011

Mathieu Basille <basille at ase-research.org> writes:

> Dear ESS gurus,
> I feel like I'm really missing something... I searched heavily on the net, in
> the ESS manual, on this list, without finding what I'm looking for. Basically,
> when I try to indent some code (with M-C-q), if a line break occurs in the
> middle of parentheses or brackets, the next line will be indented to the first
> character after the parenthesis. How can I get rid of this, and get a 'normal' 4
> spaces indentation? (this is, I think, the behaviour of the R parser)

I am not really understanding that. You mean that

    foo(arg1 = 1, arg2 = 2,
        arg3 = 3)

Is not what you want? and you would like:

    foo(arg1 = 1, arg2 = 2,
            arg3 = 3)


Doesn't make sense to me.


More information about the ESS-help mailing list