From owner-freebsd-standards Sat Dec 29 11:12:48 2001 Delivered-To: freebsd-standards@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 6436437B405 for ; Sat, 29 Dec 2001 11:12:46 -0800 (PST) Received: from localhost (imp@69.imp.village.org [10.0.0.69]) by rover.village.org (8.11.3/8.11.3) with ESMTP id fBTJChl28377; Sat, 29 Dec 2001 12:12:43 -0700 (MST) (envelope-from imp@village.org) Date: Sat, 29 Dec 2001 12:12:28 -0700 (MST) Message-Id: <20011229.121228.41633246.imp@village.org> To: joe.halpin@attbi.com Cc: standards@FreeBSD.ORG Subject: Re: Emacs and style(9) From: "M. Warner Losh" In-Reply-To: <3C2E1481.75D70CE1@attbi.com> References: <20011228.120317.105126127.imp@village.org> <20011229175813.GA42892@madman.nectar.cc> <3C2E1481.75D70CE1@attbi.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: Joe Halpin Subject: Re: Emacs and style(9) Date: Sat, 29 Dec 2001 13:07:45 -0600 : "Jacques A. Vidrine" wrote: : > : > Here's how I do it in xemacs. Perhaps someone will take all of these : > posts and come up with the One Perfect Way. : > : > (defconst knf-c-style : > '((c-basic-offset . 8) : > (c-indent-level . 8) : > (c-continued-statement-offset . 8) : : Shouldn't things like this be 4 rather than 8? The style manpage says : "Indentation is an 8 character tab. Second level indents are four : spaces.". No, these should be 8. Second level indents means statement continuation. I have some additional tweaks I've done that I'll post later. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message