* C mode formating
@ 2007-11-16 21:35 msolem
2007-11-16 22:11 ` msolem
0 siblings, 1 reply; 2+ messages in thread
From: msolem @ 2007-11-16 21:35 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I just started working on a project where the coding style looks like
this:
void func(void)
{
some stuff;
if(i == 1)
{
more stuff;
}
}
I've played around with the different modes and indent levels, but
can't seem to get it to work like above. The problem is getting it to
not use any offset on the first brace of a function, but to have
offset for braces used inside the function. Any ideas?
Mike
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: C mode formating
2007-11-16 21:35 C mode formating msolem
@ 2007-11-16 22:11 ` msolem
0 siblings, 0 replies; 2+ messages in thread
From: msolem @ 2007-11-16 22:11 UTC (permalink / raw)
To: help-gnu-emacs
Never mind. Found the answer here:
http://cc-mode.sourceforge.net
On Nov 16, 4:35 pm, mso...@linuxmail.org wrote:
> Hello,
>
> I just started working on a project where the coding style looks like
> this:
>
> void func(void)
> {
> some stuff;
> if(i == 1)
> {
> more stuff;
> }
>
> }
>
> I've played around with the different modes and indent levels, but
> can't seem to get it to work like above. The problem is getting it to
> not use any offset on the first brace of a function, but to have
> offset for braces used inside the function. Any ideas?
>
> Mike
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-16 22:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-16 21:35 C mode formating msolem
2007-11-16 22:11 ` msolem
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.