]>
Commit | Line | Data |
---|---|---|
1ad723e9 MAL |
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. | |
2c9192c1 AB |
7 | # |
8 | # Emacs: you need https://github.com/10sr/editorconfig-custom-majormode-el | |
9 | # to automatically enable the appropriate major-mode for your files | |
10 | # that aren't already caught by your existing config. | |
11 | # | |
1ad723e9 | 12 | |
a62e20f6 GH |
13 | root = true |
14 | ||
15 | [*] | |
16 | end_of_line = lf | |
17 | insert_final_newline = true | |
18 | charset = utf-8 | |
19 | ||
1ad723e9 MAL |
20 | [*.mak] |
21 | indent_style = tab | |
22 | indent_size = 8 | |
2c9192c1 | 23 | emacs_mode = makefile |
1ad723e9 | 24 | |
a62e20f6 GH |
25 | [Makefile*] |
26 | indent_style = tab | |
27 | indent_size = 8 | |
2c9192c1 | 28 | emacs_mode = makefile |
a62e20f6 | 29 | |
139c1837 | 30 | [*.{c,h,c.inc,h.inc}] |
a62e20f6 GH |
31 | indent_style = space |
32 | indent_size = 4 | |
2c9192c1 | 33 | emacs_mode = c |
1ad723e9 | 34 | |
9b109f56 AB |
35 | [*.sh] |
36 | indent_style = space | |
37 | indent_size = 4 | |
38 | ||
9699e5fb AB |
39 | [*.{s,S}] |
40 | indent_style = tab | |
41 | indent_size = 8 | |
2c9192c1 | 42 | emacs_mode = asm |
9699e5fb | 43 | |
1ad723e9 | 44 | [*.{vert,frag}] |
2c9192c1 | 45 | emacs_mode = glsl |
1ad723e9 MAL |
46 | |
47 | [*.json] | |
48 | indent_style = space | |
2c9192c1 | 49 | emacs_mode = python |