* c-mode indentation of parenthesized expressions
@ 2009-02-05 18:14 Thomas Christensen
2009-02-05 18:48 ` Thomas Christensen
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Christensen @ 2009-02-05 18:14 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c-mode indentation of parenthesized expressions
2009-02-05 18:14 c-mode indentation of parenthesized expressions Thomas Christensen
@ 2009-02-05 18:48 ` Thomas Christensen
2009-02-06 10:24 ` [Emacs] " Juanma Bellón
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Christensen @ 2009-02-05 18:48 UTC (permalink / raw)
To: help-gnu-emacs
Sorry for the noise, I just found out.
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Emacs] Re: c-mode indentation of parenthesized expressions
2009-02-05 18:48 ` Thomas Christensen
@ 2009-02-06 10:24 ` Juanma Bellón
0 siblings, 0 replies; 3+ messages in thread
From: Juanma Bellón @ 2009-02-06 10:24 UTC (permalink / raw)
To: help-gnu-emacs
On Thursday, 05 February 2009 19:48:12 Thomas wrote:
> Sorry for the noise, I just found out.
IMO, not the right thing to say. :-) No reason for sorry and no noise.
Instead, please tell us how you solved it. It's not obvious so, although a
good bunch of people in the list will know how to do it, many others don't,
and anyway the mails to this list are archived and are a good reference to
check, and it shows up in Internet searches.
Best regards.
--
Juanma
"Having a smoking section in a restaurant is like
having a peeing section in a swimming pool."
-- Edward Burr
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-06 10:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 18:14 c-mode indentation of parenthesized expressions Thomas Christensen
2009-02-05 18:48 ` Thomas Christensen
2009-02-06 10:24 ` [Emacs] " Juanma Bellón
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).