help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: customizing indentation rules.


From: Andreas Politz
Subject: Re: customizing indentation rules.
Date: Wed, 08 Dec 2010 15:15:24 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

glen stark <mail@nospam.glenstark.net> writes:

> 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?

Yes, read the manual (info "(ccmode) c-offsets-alist") and/or try `C-c
C-o'. You maybe have to write a function for the closing paren line up.

-ap


reply via email to

[Prev in Thread] Current Thread [Next in Thread]