From beec62e994fbf0003dd637a3b093ef65a9bbc8ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Fri, 20 Nov 2015 17:40:01 +0100
Subject: Add tests and document the SP variable

People who prefer spaces instead of tabs are now covered.
---
 doc/src/guide/getting_started.asciidoc | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

(limited to 'doc/src/guide/getting_started.asciidoc')

diff --git a/doc/src/guide/getting_started.asciidoc b/doc/src/guide/getting_started.asciidoc
index 34280d1..71ec0cb 100644
--- a/doc/src/guide/getting_started.asciidoc
+++ b/doc/src/guide/getting_started.asciidoc
@@ -183,6 +183,25 @@ Eshell V7.0  (abort with ^G)
 
 Simple as that!
 
+=== Using spaces instead of tabs
+
+Erlang.mk defaults to tabs when creating files from templates.
+This is in part because of a personal preference, and in part
+because it is much easier to convert tabs to spaces than the
+opposite.
+
+Use the `SP` variable if you prefer spaces. Set it to the number
+of spaces per indentation level you want.
+
+For example, if you prefer two spaces per indentation level:
+
+[source,bash]
+$ make -f erlang.mk bootstrap SP=2
+
+When you bootstrap the project initially, the variable automatically
+gets added to the Makefile, so you only need to provide it when
+you get started.
+
 === Using templates
 
 It is no secret that Erlang's OTP behaviors tend to have some
-- 
cgit v1.2.3

