Hmm, well I did some alchemy and throwing these lines into my .emacs seems to do the right thing.
(setq c-basic-offset 4) (setq c-default-style '((java-mode . "java") (awk-mode . "awk") (other . "linux"))) On Fri, Oct 23, 2009 at 6:23 PM, Patrick Hunt <ph...@apache.org> wrote: > not quite that simple I'm afraid ;-) some good friday reading if you > haven't seen before > > http://kerneltrap.org/node/11 > > perhaps we should use lindent on our code? whoops ... ;-) > > Patrick > > > Benjamin Reed wrote: > >> i think we follow linux coding conventions. i think i wrote most of the >> code using the linux emacs style. >> >> ben >> >> Steve Cheng wrote: >> >>> Hi, >>> What are the C formatting conventions for ZooKeeper? Couldn't find >>> anything >>> on the HowToContribute page. >>> >>> Thank you, >>> >>> Steven >>> >>> >> >>