.editorconfig (787B)
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 6 root = true 7 8 [*] 9 indent_style = space 10 # this remove final newline in some editors, instead of inserting it 11 # insert_final_newline = true 12 trim_trailing_whitespace = true 13 end_of_line = lf 14 charset = utf-8 15 max_line_length = 79 16 17 [*.py] 18 indent_size = 4 19 # to do not have final newline in python code 20 insert_final_newline = true 21 22 [*.c, *.h] 23 # done in tests and other cases do not use 2 spaces identations, so this 24 # should be commented on those cases 25 indent_size = 2 26 trim_trailing_whitespace = true 27 28 [Makefile, *.am] 29 indent_style = tab 30 31 [*-spec.txt] 32 # specs seem to have 76 chars max per lines as RFCs 33 max_line_length = 76