Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Sep 2000 19:07:33 -0600
From:      Warner Losh <imp@village.org>
To:        Blaz Zupan <blaz@amis.net>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: .indent.pro for KNF? 
Message-ID:  <200009250107.TAA01401@harmony.village.org>
In-Reply-To: Your message of "Sun, 24 Sep 2000 20:24:44 %2B0200." <Pine.BSF.4.21.0009242019310.48724-100000@titanic.medinet.si> 
References:  <Pine.BSF.4.21.0009242019310.48724-100000@titanic.medinet.si>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.21.0009242019310.48724-100000@titanic.medinet.si> Blaz Zupan writes:
: original style of the sources as supplied by Initio is simply
: horrible. Fixing it all up by hand will take days if not weeks so
: I'm trying to find an easier way.

I believe that indent cannot create style(9) output.  You can get real 
close with emacs + cc-mode + 'bsd coding style.

  (c-set-style "bsd")
  (setq c-basic-offset 8
	c-conditional-key c-C++-conditional-key
	indent-tabs-mode t
	c-tab-always-indent nil)
  (setq c-cleanup-list (append c-cleanup-list (list 'brace-else-brace)))
  (c-set-offset 'arglist-close 0)
  (c-set-offset 'arglist-cont-nonempty 4)
  (c-set-offset 'inline-open 0)
  (c-set-offset 'case-label 0)
  (c-set-offset 'statement-cont 4)
  (c-toggle-auto-state 1)
Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009250107.TAA01401>