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

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

Re: Help with Java indentation


From: Nathaniel Flath
Subject: Re: Help with Java indentation
Date: Fri, 8 Jan 2010 22:53:53 -0500

I am using java-mode.  The syntax is correct - it indents that way even if the function call is complete.

On Fri, Jan 8, 2010 at 10:52 PM, Glauber Alex Dias Prado <smade4@gmail.com> wrote:
Nathaniel Flath <flat0103@gmail.com> writes:

> How do I configure Emacs to set the indentation of a java function call to
> act as such:

depends on what mode you are using to edit java, but in general it has
the same behavior as c-mode and you can configure its style which
control among other things indentation. What you are reporting seems like broken
indentation due to wrong syntax, this can help as a visual cue of wrong
syntax, but i can be wrong.

> SomeStupidClass.SomeStupidFunction(
>       Arg1
>       Arg2
> }
>
> Instead of:
>
> SomeStupidClass.SomeStupidFunction(
>                                                                 Arg1
>                                                                 Arg2
> }
>
> Thanks,
> Nathaniel Flath


reply via email to

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