Nmap Development mailing list archives
Re: [PATCH] Re: Indenting style, modelines
From: Fyodor <fyodor () insecure org>
Date: Fri, 6 Mar 2009 19:30:03 -0800
On Thu, Mar 05, 2009 at 10:28:19AM +0100, Daniel Roethlisberger wrote:
Sure. How about the attached patch to the HACKING file for a start? If there are other style recommendations or rules, they can be added there too.
Good idea. I added this section which is only slightly modified from your patch: --- HACKING (revision 12445) +++ HACKING (working copy) @@ -93,7 +93,22 @@ and just send us the patch: file.c.patch. +Style +----- +When contributing new code, we suggest using two-space indents with no +tabs. This is generally the default in emacs, and Vim users can +achieve it by adding rules such as the following to .vimrc: + +if getcwd() =~ '/nmap' + set nocindent + set expandtab + set softtabstop=2 + set shiftwidth=2 + set copyindent +endif + + Credits ------- Cheers, -F _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Re: [nmap-svn] r12101 - ncat Fyodor (Feb 16)
- Indenting style, modelines Daniel Roethlisberger (Feb 17)
- Re: Indenting style, modelines Daniel Roethlisberger (Feb 17)
- Re: Indenting style, modelines David Fifield (Feb 17)
- [PATCH] Re: Indenting style, modelines Daniel Roethlisberger (Mar 05)
- Re: [PATCH] Re: Indenting style, modelines Fyodor (Mar 06)
- Indenting style, modelines Daniel Roethlisberger (Feb 17)
- Re: [nmap-svn] r12101 - ncat Arturo 'Buanzo' Busleiman (Feb 17)
- Re: [nmap-svn] r12101 - ncat David Fifield (Feb 17)
- Re: [nmap-svn] r12101 - ncat Arturo 'Buanzo' Busleiman (Feb 17)
- Re: [nmap-svn] r12101 - ncat David Fifield (Feb 17)