You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 line
1.0 KiB

  1. Indenting
  2. =========
  3. To have consistent indenting we have vi modeline/emacs local variable
  4. headers in rebar's source files. This works automatically with vi.
  5. With Emacs you have to declare 'erlang-indent-level set to 4'
  6. as a safe local variable value. If not configured Emacs will prompt
  7. you to save this as part of custom-set-variables:
  8. '(safe-local-variable-values (quote ((erlang-indent-level . 4))))
  9. You can also tell Emacs to ignore file variables:
  10. (setq enable-local-variables nil
  11. enable-local-eval nil)
  12. Writing Commit Messages
  13. =======================
  14. One line summary (< 50 characters)
  15. Longer description (wrap at 72 characters)
  16. Summary
  17. -------
  18. * Less than 50 characters
  19. * What was changed
  20. * Imperative present tense (fix, add, change)
  21. Fix bug 42
  22. Add 'foobar' command
  23. Change default timeout to 42
  24. * No period
  25. Description
  26. -----------
  27. * Wrap at 72 characters
  28. * Why, explain intention and implementation approach
  29. * Present tense
  30. Atomicity
  31. ---------
  32. * Break up logical changes
  33. * Make whitespace changes separately