From owner-freebsd-current Sun Sep 24 18: 7:40 2000 Delivered-To: freebsd-current@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id A778837B422 for ; Sun, 24 Sep 2000 18:07:36 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id TAA00796; Sun, 24 Sep 2000 19:07:34 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id TAA01401; Sun, 24 Sep 2000 19:07:33 -0600 (MDT) Message-Id: <200009250107.TAA01401@harmony.village.org> To: Blaz Zupan Subject: Re: .indent.pro for KNF? Cc: freebsd-current@FreeBSD.ORG In-reply-to: Your message of "Sun, 24 Sep 2000 20:24:44 +0200." References: Date: Sun, 24 Sep 2000 19:07:33 -0600 From: Warner Losh Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message 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