.editorconfig 787 B

123456789101112131415161718192021222324252627282930313233
  1. # this should work for all editors that support .editorconfig!
  2. #
  3. # on debian, emacs users should install elpa-editorconfig and vim
  4. # users should install vim-editorconfig.
  5. root = true
  6. [*]
  7. indent_style = space
  8. # this remove final newline in some editors, instead of inserting it
  9. # insert_final_newline = true
  10. trim_trailing_whitespace = true
  11. end_of_line = lf
  12. charset = utf-8
  13. max_line_length = 79
  14. [*.py]
  15. indent_size = 4
  16. # to do not have final newline in python code
  17. insert_final_newline = true
  18. [*.c, *.h]
  19. # done in tests and other cases do not use 2 spaces identations, so this
  20. # should be commented on those cases
  21. indent_size = 2
  22. trim_trailing_whitespace = true
  23. [Makefile, *.am]
  24. indent_style = tab
  25. [*-spec.txt]
  26. # specs seem to have 76 chars max per lines as RFCs
  27. max_line_length = 76