aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-12-13 11:04:52 +0100
committerGitHub <[email protected]>2016-12-13 11:04:52 +0100
commit45af5c389e5a9594bef227658870585e6887a6d6 (patch)
tree810e67dc17de80908a3a48cf0f5a918a8e796e50
parent7ea79d5214ade057aa2e2797610aa7fac4ebca4c (diff)
downloadotp-45af5c389e5a9594bef227658870585e6887a6d6.tar.gz
otp-45af5c389e5a9594bef227658870585e6887a6d6.tar.bz2
otp-45af5c389e5a9594bef227658870585e6887a6d6.zip
Update CONTRIBUTING.md
-rw-r--r--CONTRIBUTING.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 33b7195aa1..342d5a86a9 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -81,7 +81,19 @@ Check your coding style:
* In most code (Erlang and C), indentation is 4 steps. Indentation using only spaces is **strongly recommended**.
+### Configuring Emacs
+
If you use Emacs, use the Erlang mode, and add the following lines to `.emacs`:
(setq indent-tabs-mode nil)
(setq c-basic-offset 4)
+
+If you want to change the setting only for the Erlang mode, you can use a hook like this:
+
+```
+(add-hook 'erlang-mode-hook 'my-erlang-hook)
+
+(defun my-erlang-hook ()
+ ( ;;; Untabify.
+ (setq indent-tabs-mode nil))
+```