[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lobotimze Java mode indentation engine?
From: |
Klaus Berndl |
Subject: |
Re: Lobotimze Java mode indentation engine? |
Date: |
29 Jul 2003 16:07:45 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
On Tue, 29 Jul 2003, Kai Großjohann wrote:
> Klaus Berndl <klaus.berndl@sdm.de> writes:
>
> > I have written this small code only by hitting return, i.e. autom.
> > indented:
> >
> > ,----
> > | void
> > | test_function()
> > | {
> > | function_call(arg1,
> > | arg2,
> > | arg3);
> > |
> > | function_call(
> > | arg1,
> > | arg2,
> > | arg3);
> > | }
> > `----
> >
> > I think, this is what you want, isn't it?
> > BTW: IMHO this is useful not only for Java, but also for C and C++....
>
> Yes, indeed, this is what I want. Now I had another look at the
> docs, and found that (c-set-offset 'arglist-intro '+) did the trick.
>
> I found this by doing C-c C-s on the b line, which gave me
> arglist-cont-nonempty:
>
> foo(a,
> b);
>
> And then I did C-c C-s on this a line, which gave me arglist-intro:
>
> foo(
> a,
> b);
Yes, thats the way i do this too... But what I'm wondering why it has not
worked for you before, because AFAIK arglist-intro is set by default to +?!
Klaus
--
Klaus Berndl mailto: klaus.berndl@sdm.de
sd&m AG http://www.sdm.de
software design & management
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220