- Subject: c_mode_hook configuration
- From: Peter Karlsson <peter@xxxxxxxxxxxxxxxx>
- Date: Wed, 3 Oct 2007 12:00:03 +0100 (CET)
Hi!
I am trying to configure jed to conform to my new employer's C coding
standards, but I am having some problems getting the indentation right.
Their coding standard mandates this:
int main()
{
if ( foo )
{
bar();
}
else
{
baz();
}
switch ( foo)
{
case 1:
foo();
break;
}
}
I have currently set this, which almost works, except that I get an
extra indentation between the if-braces and the contents (yes, I do
think it looks horrible), which I can't figure out how to get rid of.
C_INDENT = 3; /* Indent by three */
C_BRACE = 3; /* Indent by three in braces */
C_BRA_NEWLINE = 1; /* Braces go on their own lines */
C_Colon_Offset = 0; /* Case aligns to braces */
C_CONTINUED_OFFSET = 4; /* Indent continuation lines */
TAB = 3; /* Tab stops are three spaces */
--
\\// Peter - http://www.softwolves.pp.se/
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2007 date index]
[2007 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]