unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Is there a way to configure Emacs to add newlines and indent after  open-paren and commas in formal parameter lists?
@ 2008-10-10  7:18 mark.m.lacey
  0 siblings, 0 replies; only message in thread
From: mark.m.lacey @ 2008-10-10  7:18 UTC (permalink / raw
  To: help-gnu-emacs

I'm using Emacs 22.1.1 and I'd like to get auto-newline and indent
behavior such that formal parameter lists look like this without my
having to hit RETURN or TAB at all:

int foo
(
    int a,
    float b,
)
{
    return a+b;
}

Can anyone suggest appropriate changes to .emacs to make this happen?

It's been years since I've used Emacs regularly so I'm not great with
writing Emacs Lisp code.

Any help getting even part way there would be appreciated.

Thanks.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-10  7:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-10  7:18 Is there a way to configure Emacs to add newlines and indent after open-paren and commas in formal parameter lists? mark.m.lacey

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