[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C-mode electric braces
From: |
Carsten Burstedde |
Subject: |
C-mode electric braces |
Date: |
Tue, 10 Sep 2002 11:47:23 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020607 |
Hi,
I want to customize the electric brace behaviour in C-mode. I looked
through the threads of the last months, but did not find a matching subject.
1. When I define array constants, I do not want emacs to put the closing
braces on an extra line, which it currently does. When I hit } after
int a[3] = { 1, 2, 3
the closing brace jumps to the next line. How can I switch this off?
2. After having typed
for (i = 0; i < 3; ++i)
I want that hitting the opening brace places it on the next line, then
inserts an empty line and the closing brace, and places the cursor in
between:
{
<point>
}
Any suggestions for my .emacs?
Thanks,
Carsten
- C-mode electric braces,
Carsten Burstedde <=
- Re: C-mode electric braces, Kai Großjohann, 2002/09/10
- Re: C-mode electric braces, Carsten Burstedde, 2002/09/11
- Re: C-mode electric braces, Klaus Berndl, 2002/09/11
- Re: C-mode electric braces, Carsten Burstedde, 2002/09/11
- Re: C-mode electric braces, Klaus Berndl, 2002/09/11
- Re: C-mode electric braces, Alan Mackenzie, 2002/09/11