Marc-André Lureau | 1ad723e | 2018-08-21 12:35:28 +0200 | [diff] [blame] | 1 | # EditorConfig is a file format and collection of text editor plugins |
| 2 | # for maintaining consistent coding styles between different editors |
| 3 | # and IDEs. Most popular editors support this either natively or via |
| 4 | # plugin. |
| 5 | # |
| 6 | # Check https://editorconfig.org for details. |
| 7 | |
Gerd Hoffmann | a62e20f | 2017-07-17 12:15:47 +0200 | [diff] [blame] | 8 | root = true |
| 9 | |
| 10 | [*] |
| 11 | end_of_line = lf |
| 12 | insert_final_newline = true |
| 13 | charset = utf-8 |
| 14 | |
Marc-André Lureau | 1ad723e | 2018-08-21 12:35:28 +0200 | [diff] [blame] | 15 | [*.mak] |
| 16 | indent_style = tab |
| 17 | indent_size = 8 |
| 18 | file_type_emacs = makefile |
| 19 | |
Gerd Hoffmann | a62e20f | 2017-07-17 12:15:47 +0200 | [diff] [blame] | 20 | [Makefile*] |
| 21 | indent_style = tab |
| 22 | indent_size = 8 |
Marc-André Lureau | 1ad723e | 2018-08-21 12:35:28 +0200 | [diff] [blame] | 23 | file_type_emacs = makefile |
Gerd Hoffmann | a62e20f | 2017-07-17 12:15:47 +0200 | [diff] [blame] | 24 | |
| 25 | [*.{c,h}] |
| 26 | indent_style = space |
| 27 | indent_size = 4 |
Marc-André Lureau | 1ad723e | 2018-08-21 12:35:28 +0200 | [diff] [blame] | 28 | |
| 29 | [*.{vert,frag}] |
| 30 | file_type_emacs = glsl |
| 31 | |
| 32 | [*.json] |
| 33 | indent_style = space |
| 34 | file_type_emacs = python |