From owner-freebsd-standards Sat Dec 29 11: 7:50 2001 Delivered-To: freebsd-standards@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 4B5C037B416 for ; Sat, 29 Dec 2001 11:07:46 -0800 (PST) Received: from attbi.com ([12.237.33.57]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20011229190745.RVVN1920.rwcrmhc51.attbi.com@attbi.com> for ; Sat, 29 Dec 2001 19:07:45 +0000 Message-ID: <3C2E1481.75D70CE1@attbi.com> Date: Sat, 29 Dec 2001 13:07:45 -0600 From: Joe Halpin X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 Cc: standards@FreeBSD.ORG Subject: Re: Emacs and style(9) References: <20011228031537.B99161@espresso.q9media.com> <3C2CA64C.663F8943@attbi.com> <200112281746.fBSHk6n58428@khavrinen.lcs.mit.edu> <20011228.120317.105126127.imp@village.org> <20011229175813.GA42892@madman.nectar.cc> 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 "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.". That's what I've been having the most trouble with. If I define c-basic-offset to be 8, and then define other offsets to be 4, it doesn't work for me. I don't really speak emacs lisp very well though, so maybe my accent is screwing things up. [...] > If I recall correctly, the stuff besides `c-offsets-alist' and > `c-basic-offset' is just for old c-mode compatibility and is probably > not needed. Maybe that's my problem. Any way to do what the style manpage wants? Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message