[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Problem with customizing open brace behavior
From: |
Jason Rumney |
Subject: |
Re: [h-e-w] Problem with customizing open brace behavior |
Date: |
29 Jan 2002 19:47:54 +0000 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.80 |
"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