Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!petunia!news From: jdinkins@eagle.calpoly.edu (nobody) Newsgroups: comp.emacs Subject: c++-mode Message-ID: <27e7017f.3e5d@petunia.CalPoly.EDU> Date: 20 Mar 91 06:30:23 GMT Reply-To: jdinkins@eagle.calpoly.edu.UUCP (nobody) Organization: 3-D House of Slave Chicks Lines: 52 Using c++-mode, don't know what version, but the most recent comment is this: ;; Feb, 1990 (Dave Detlefs, dld@cs.cmu.edu) ;; Fixed electric-c++-terminator to handle double colons, at the ;; request of John Hagerman. Anyways, the question is this: can/should electric-c++-brace be automatically inserting newlines (cariagle returns, whatever) and indent after I press '{'? It currently doesn't, and I would like it to. i.e. typing if(wokka_wokka_wokka){ should yield if(wokka_wokka_wokka) { .<- cursor should land here all without me having to press return either after the { or after it indents in the newline. So.. am I asking too much? While I'm at this wish list, has anyone written anything that does this: if(wokka_wokka_wokka){ yields if(wokka_wokka_wokka) { .<- cursor lands here } I know that an editor called brief (my girlfriend uses it at work) does this, but I don't use brief. jeff -- \\ ___/~~O~~\___ // snikniD nalA nosreffeJ ====____/ \.. ../ \____==== UDE.yloPlaC.olsylop@sniknidj -----___=======___----- sniknidj!olsylop!redov!xavbcu \\-u-// Where's Waldo?