all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.