Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

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

emacs and C++ { } indenting

Emacs C++ mode seems to insist on K&R style indenting of brackets like

void Foo:Bar(Baz myBaz) {
	// code here

I prefer the ANSI style like

void Foo:Bar(Baz myBaz) 
        // code here

emacs goes nuts indenting everyting too much when I do that too.  So I 
have to write my program using K&R, then go back and fix the brackets 

What is the magic Lisp incantation to fix this?  I found something SingTFW 
but it didn't work.

DK KD  Yesterday's code should be as good as we could make it yesterday.
DKK D  The fact that we know more today, and are more capable today,
DK KD  is good news about today, not bad news about yesterday.
DDDD                                - Ron Jeffries

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /