Date: Sun, 30 Mar 2008 16:27:10 -0700 From: "David O'Brien" <obrien@FreeBSD.org> To: Dag-Erling =?unknown-8bit?B?U23DuHJncmF2?= <des@des.no> Cc: Rui Paulo <rpaulo@fnop.net>, cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, "Sean C. Farley" <scf@FreeBSD.org> Subject: Re: cvs commit: src/tools/tools/editing freebsd.vim Message-ID: <20080330232710.GA26455@dragon.NUXI.org> In-Reply-To: <867ifoaulz.fsf@ds4.des.no> References: <200803131852.m2DIqkw3095857@repoman.freebsd.org> <alpine.BSF.1.00.0803131754020.2408@thor.farley.org> <20080314003205.GA94057@dragon.NUXI.org> <20080319133906.GA3872@fnop.net> <867ifoaulz.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 27, 2008 at 07:29:28PM +0100, Dag-Erling Smrgrav wrote: > > I think this should be mentioned in the developer's handbook because, > > IIRC, the sample .emacs file in there is bogus and doesn't really > > respect style(9). DES, This is what should be committed? Index: freebsd.el =================================================================== RCS file: /home/ncvs/src/tools/tools/editing/freebsd.el,v retrieving revision 1.1 diff -u -p -r1.1 freebsd.el --- freebsd.el 15 Dec 1998 16:51:49 -0000 1.1 +++ freebsd.el 30 Mar 2008 23:26:42 -0000 @@ -22,7 +22,7 @@ ;;; As long as you don't have this in the c-mode hook you can edit GNU ;;; and BSD style C sources within one emacs session with no problem. ;;; -;;; Please report problems and additions directly to cracauer@freebsd.org +;;; Please report problems and additions via 'send-pr' (defun bsd () (interactive) (c-set-style "bsd") @@ -34,7 +34,22 @@ (c-set-offset 'statement-case-intro 8) (c-set-offset 'substatement-open 4) (c-set-offset 'substatement 8) - (c-set-offset 'arglist-cont-nonempty 4) (c-set-offset 'inclass 8) (c-set-offset 'knr-argdecl-intro 8) + + ;; Basic indent is 8 spaces + (setq c-basic-offset 8) + (setq tab-width 8) + + ;; Continuation lines are indented 4 spaces + (c-set-offset 'arglist-cont 4) + (c-set-offset 'arglist-cont-nonempty 4) + (c-set-offset 'statement-cont 4) + (c-set-offset 'cpp-macro-cont 8) + + ;; Labels are flush to the left + (c-set-offset 'label [0]) + + ;; Fill column + (setq fill-column 74)) )
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080330232710.GA26455>