Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!pasteur!ucbvax!NRL-AIC.ARPA!schultz From: schultz@NRL-AIC.ARPA (Alan Schultz) Newsgroups: comp.emacs Subject: C mode formatting question Message-ID: <8803171340.AA10824@nrl-aic.arpa> Date: 17 Mar 88 13:40:52 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 39 I have GNU 18.49. Although C mode has lots of variables for different formatting styles, I can't seem to get it set for the style I use. Below is a sample of the formatting I would prefer to have. Can anyone tell me the proper variable settings, or a hack to get it... /* ----- sample code ----------*/ int a_global_variable; /* Global def's are flush left */ int afunction (a, b) /* NOTE that only the type and name of the */ /* function are flush left. */ int a; int b; { /* I want this indented the same as the declarations */ int c, d; /* of the function parameters. */ for (c = 1; c < b; c++) /* The rest of this I have no problem with */ { d += a; printf ("%d", d); } return d; } /* ---- end of sample code ------ */ Thanks for any help. Send mail direct to schultz@nrl-aic.arpa if possible. Alan C. Schultz Code 5510 Navy Center for Applied Research in Artificial Intelligence (NCAR A I) Naval Research Laboratory Washington, D.C. 20375-5000 ARPA: schultz@nrl-aic.arpa (202) 767-2877