unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* c-mode post-line-break indentation
@ 2006-10-31 23:47 Robert Figueiredo
  2006-11-01 22:46 ` Robert Figueiredo
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Figueiredo @ 2006-10-31 23:47 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 524 bytes --]

Hello,
The behavior I want in c-mode (or java-mode) is a basic-offset of 2, but a
further indent of 4 if an expression is broken across lines.  For example,

LongClassName lcn =
    new LongClassName(someLongArguments);


I can not figure out how to do this :c\
It seems like the only option is writing a function to parse this structure
and tab it accordingly, and adding that to c-offsets-alist, but that seems
like a ton of work for something my IntelliJ-using coworkers get for free.

Any ideas?

Thanks,
Rob Figueiredo

[-- Attachment #1.2: Type: text/html, Size: 592 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c-mode post-line-break indentation
  2006-10-31 23:47 c-mode post-line-break indentation Robert Figueiredo
@ 2006-11-01 22:46 ` Robert Figueiredo
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Figueiredo @ 2006-11-01 22:46 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 559 bytes --]

>
> Hello,
> The behavior I want in c-mode (or java-mode) is a basic-offset of 2, but a
> further indent of 4 if an expression is broken across lines.  For example,
>
> LongClassName lcn =
>     new LongClassName(someLongArguments);
>
>
> I can not figure out how to do this :c\
> It seems like the only option is writing a function to parse this
> structure and tab it accordingly, and adding that to c-offsets-alist, but
> that seems like a ton of work for something my IntelliJ-using coworkers get
> for free.
>
> Any ideas?
>
> Thanks,
> Rob Figueiredo
>

[-- Attachment #1.2: Type: text/html, Size: 756 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-01 22:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-31 23:47 c-mode post-line-break indentation Robert Figueiredo
2006-11-01 22:46 ` Robert Figueiredo

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).