Subject: (x)emacs c-mode indentation question
To: None <netbsd-help@netbsd.org>
From: Wayne Cuddy <wcuddy@crb-web.com>
List: netbsd-help
Date: 12/21/2001 12:41:55
I was hoping an (x)emacs expert on this list might be able to help me with
a c-mode customization question.
I currently have 'c-basic-offset' set to 4. So my C code looks like this:
int
myfunct(int A)
{
if(a != b) &&
(c != d)
{
...
}
return 0;
}
Note the indentation on the line after the if, it always ends up being 3
characters after the last character on the previous line. I want it to be
this:
indent value = <current indentation value> + (2 * c-basic-offset)
So it would look like this:
int
myfunct(int A)
{
if(a != b) &&
(c != d)
{
...
}
return 0;
}
Anyone know how to do this?
Thanks,
Wayne