Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Dec 2001 10:10:50 +0100
From:      Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To:        Wes Peters <wes@softweyr.com>
Cc:        freebsd-standards@bostonradio.org
Subject:   Re: strerror_r() implementation
Message-ID:  <20011204101050.M6664@daemon.ninth-circle.org>
In-Reply-To: <3C0C77B8.26C050B0@softweyr.com>
References:  <20011202011045.F5026-100000@gamplex.bde.org> <3C0C77B8.26C050B0@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-On [20011204 07:15], Wes Peters (wes@softweyr.com) wrote:
>Documenting the options to indent(1) that most closely produces style(9)
>compliant code would certainly be a starting point.  I think you could
>easily make the point that FreeBSD's indent should default to style(9)
>settings as well, or at least support a flag that does so.

The following in vim works wonders for me:

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
augroup END

[Of course, this works only when you actively edit the document.]

-- 
Jeroen Ruigrok van der Werven / Asmodai / Kita no Mono / xMach coreteam
asmodai@[wxs.nl|xmach.org], finger asmodai@ninth-circle.org, www.xmach.org
I raise a sunken smile, as I serve the ones who served...

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011204101050.M6664>