-On [20000924 20:25], Blaz Zupan ([EMAIL PROTECTED]) 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 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
augroup END

Jeroen Ruigrok van der Werven          Network- and systemadministrator
<[EMAIL PROTECTED]>            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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to