logo       

C formatting: msg#00871

emacs.help

Subject: C formatting

hello,

I am fighting with EMacs in order to get my programmation style:

void function(int x, int y)
{
blabla;
if (...)
{
blabla
blabla
}
else
blabla;
}

I ma desesperatly playing in my .emacs with the following statements, but no luck:

(setq c-mode-hook
(function
(lambda ()
(setq c-basic-offset 0)
(setq c-indent-level 5)
(setq c-continued-statement-offset 5)
(setq c-argdecl-indent 0)
(setq c-brace-offset -5)
(setq c-label-offset -5)
)
)
)

If someone has the same formatiing habits, please give me your setup values...

By the way, there is no way, in the buffer, to put two following tabs ??

Thanks for help !

--
. .
. .:::. ### \|/ ` ___ '
:(o o): . (o o) (o o) - (O o) -
ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise