[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: customizing indentation rules.
From: |
jpkotta |
Subject: |
Re: customizing indentation rules. |
Date: |
Wed, 08 Dec 2010 15:15:25 -0000 |
User-agent: |
G2/1.0 |
On Jun 22, 9:53 am, glen stark <m...@nospam.glenstark.net> wrote:
> Hi everyone.
>
> I have a question about how to customize the emacs indentation rules,
> specifically for the C++ mode.
>
> Currently emacs indents code after an open parentheses thusly:
>
> void example_function(
> int i,
> int j,
> ... )
> I'd like it to rather do this:
> void example_function(
> int i,
> int j,
> ... )
>
> Can someone point me in the right direction for how to accomplish this?
Try customizing c-offsets-alist. I think setting arglist-intro (and
probably arglist-cont and arglist-cont-nonempty) to '+ is what you
want.