From owner-freebsd-current Sun Sep 24 23: 5:29 2000 Delivered-To: freebsd-current@freebsd.org Received: from lucifer.ninth-circle.org (lucifer.bart.nl [194.158.168.74]) by hub.freebsd.org (Postfix) with ESMTP id 9462737B424 for ; Sun, 24 Sep 2000 23:05:26 -0700 (PDT) Received: (from asmodai@localhost) by lucifer.ninth-circle.org (8.11.0/8.9.3) id e8P65Ju66121; Mon, 25 Sep 2000 08:05:19 +0200 (CEST) (envelope-from asmodai) Date: Mon, 25 Sep 2000 08:05:19 +0200 From: Jeroen Ruigrok van der Werven To: Blaz Zupan Cc: freebsd-current@FreeBSD.ORG Subject: Re: .indent.pro for KNF? Message-ID: <20000925080519.B60278@lucifer.bart.nl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from blaz@amis.net on Sun, Sep 24, 2000 at 08:24:44PM +0200 Organisation: VIA Net.Works The Netherlands Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -On [20000924 20:25], Blaz Zupan (blaz@amis.net) wrote: >Does anybody have a .indent.pro file for indent(1) that enforces KNF style as >specified in style(9)? Try this if you use vim: augroup cprog " Remove all cprog autocommands autocmd! autocmd BufNewFile,BufRead *.c,*.h set formatoptions=croql autocmd BufNewFile,BufRead *.c,*.h set cindent autocmd BufNewFile,BufRead *.c,*.h set comments=sr:/*,mb:*,el:*/,:// autocmd BufNewFile,BufRead *.c,*.h set cinoptions=t0(0 autocmd BufNewFile,BufRead *.c,*.h hi PreProc ctermfg=DarkCyan guifg =DarkCyan augroup END -- Jeroen Ruigrok van der Werven Network- and systemadministrator VIA Net.Works The Netherlands BSD: Technical excellence at its best http://www.via-net-works.nl Grant me the serenity to accept the things I cannot change, courage to change the things I can, and wisdom to know the difference... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message