Article View: gnu.emacs.help
Article #189813C formatting in GNU EMACS
From: Brice Tebbs
Date: Wed, 31 Oct 1990 15:34
Date: Wed, 31 Oct 1990 15:34
28 lines
1123 bytes
1123 bytes
I can't seem to get emacs to format my c-code the
way I want. I have tried the definable variables
in c-mode. I am still unable to get switch statements to
come out like I want.
switch (mumble)
{
case 1:
some_code;
more_code;
break;
case 2:
another_line;
break;
default:
more_lines;
}
I want the indent level to be 4 and I want the code under
each case to be indented 4 from the word case.
Is there an enhanced c-mode that will do this?
Please respond via. email if this has been asked a million
times before.
Thanks
Brice Tebbs
tebbs@cs.unc.edu
Technical Details
Message-ID:
<17193@thorin.cs.unc.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!mcnc!thorin!currituck!tebbsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,c2581b969543674f,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1990-11-01 02:21:05 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!mcnc!thorin!currituck!tebbs From: tebbs@currituck.cs.unc.edu (Brice Tebbs) Newsgroups: gnu.emacs.help Subject: C formatting in GNU EMACS Keywords: hmm Message-ID: <17193@thorin.cs.unc.edu> Date: 31 Oct 90 15:34:19 GMT Sender: news@thorin.cs.unc.edu Lines: 28 Posted: Wed Oct 31 16:34:19 1990