From bf9d1bad77f442b344da51978ec2ed82bfc1b3db Mon Sep 17 00:00:00 2001 From: fyodor Date: Sat, 7 Mar 2009 03:28:42 +0000 Subject: [PATCH] Add a style section very similar to one suggested by Daniel Roethlisberger on nmap-dev --- HACKING | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/HACKING b/HACKING index c43592a5e..b1f3626a6 100644 --- a/HACKING +++ b/HACKING @@ -93,6 +93,21 @@ easier. For each file, just do: 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 -------