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

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

c-mode indentation of parenthesized expressions


From: Thomas Christensen
Subject: c-mode indentation of parenthesized expressions
Date: Thu, 05 Feb 2009 19:14:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

Hi,

Emacs per default indents like this in all c-styles I have tried:

a = (2 + 4 +
     5)

and

a = foo(1, 2, 3,
        4)

It aligns with the parenthesis.

I want to change this to twice the default indent, which I have set to a
tab in the example below, like this:

a = (2 + 4 +
                5)

and

a = foo(1, 2, 3,
                4)

Can someone tell me how to do this?

I have messed around with `c-style-alist'; but without any luck.

                Thomas





reply via email to

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