Path: utzoo!attcan!uunet!husc6!bbn!gateway!utrccm!ecb From: ecb@utrccm (ecb) Newsgroups: comp.emacs Subject: (none) Message-ID: <8810031927.AA01215@utrccm.SMC.UTC.COM> Date: 3 Oct 88 19:27:09 GMT Sender: news@bbn.COM Organization: BBN news/mail gateway Lines: 45 's message of 28 Sep 88 05:50:24 GMT <1587@mcgp1.UUCP> Subject: C++ mode for GNU emacs Is there a way to have the GNU emacs c-mode indent in the following form:... I tried typing your sample C code and it came out like this: function(arg1, arg2) char arg1,*arg2; { if (bogus) { firstfunc(); that(); } else blah_blah(); switch (This) { case BOB; break; default: } } nextfunc() { } If this is close enough to what you want I'll be glad to explain how I did it. Happily, this only involves resetting some variables and a judicious use of the LFD key. I'm not a Lisp hacker either. Bud Boman United Technologies Research Center MS 129-47 Silver Lane East Hartford, CT 06118 (203) 727-7128 ecb@utrccm.smc.utc.com