From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mark.m.lacey@gmail.com Newsgroups: gmane.emacs.help Subject: Is there a way to configure Emacs to add newlines and indent after open-paren and commas in formal parameter lists? Date: Fri, 10 Oct 2008 00:18:02 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2013ee17-6818-4d93-8ec3-df80dac66803@b31g2000prb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223647434 22816 80.91.229.12 (10 Oct 2008 14:03:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2008 14:03:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 16:04:47 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KoIbc-0002Z7-VS for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 16:04:37 +0200 Original-Received: from localhost ([127.0.0.1]:58287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoIaY-0007rQ-M0 for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 10:03:30 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b31g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 98.232.28.52 Original-X-Trace: posting.google.com 1223623083 19856 127.0.0.1 (10 Oct 2008 07:18:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 10 Oct 2008 07:18:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b31g2000prb.googlegroups.com; posting-host=98.232.28.52; posting-account=DAem7AoAAABm12nchdJnz7m5iEMxvx35 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163310 X-Mailman-Approved-At: Fri, 10 Oct 2008 10:03:12 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58667 Archived-At: 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.