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

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

RE: [h-e-w] Problem with customizing open brace behavior


From: Ben Key
Subject: RE: [h-e-w] Problem with customizing open brace behavior
Date: Tue, 29 Jan 2002 20:14:40 -0500

Thank you.  I cannot believe I missed that.  I guess I am too used to C /
C++ where

both
        SomeFunc(param1, param2);
and
        SomeFunc(param1,param2); // The space after the comma is a matter of
preference
work.

-----Original Message-----
From: Jason Rumney [mailto:address@hidden
Sent: Tuesday, January 29, 2002 02:48 PM
To: address@hidden
Cc: address@hidden; address@hidden
Subject: Re: [h-e-w] Problem with customizing open brace behavior


"Ben Key" <address@hidden> writes:

> I have just started to familiarize myself with NT EMACS.  It is a
> very powerful programmers editor and I love it.
>
> There is, however, one problem I am having that I hope you all can
> help me with.
>
> I want to customize NT EMACS so that when I type
>
> if (condition){code}
>
> it will be automatically reformatted to
>
> if (condition)
>   {
>     code
>   }
>
>
> I have gotten most of the way there by creating my own C style

c-hanging-braces-alist is what you need to change.

>     (c-hanging-braces-alist. (
                             ^ missing space

>         (substatement-open before after)

before after is the default, so you should be able to leave these out.


--
Jason Rumney


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 01/21/2002




reply via email to

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