blob: 7303759ed7d883ff7d699be87b5ab1b6948712a1 [file] [log] [blame]
Marc-André Lureau1ad723e2018-08-21 12:35:28 +02001# 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.
Alex Bennée2c9192c2021-03-05 14:48:39 +00007#
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#
Marc-André Lureau1ad723e2018-08-21 12:35:28 +020012
Gerd Hoffmanna62e20f2017-07-17 12:15:47 +020013root = true
14
15[*]
16end_of_line = lf
17insert_final_newline = true
18charset = utf-8
19
Marc-André Lureau1ad723e2018-08-21 12:35:28 +020020[*.mak]
21indent_style = tab
22indent_size = 8
Alex Bennée2c9192c2021-03-05 14:48:39 +000023emacs_mode = makefile
Marc-André Lureau1ad723e2018-08-21 12:35:28 +020024
Gerd Hoffmanna62e20f2017-07-17 12:15:47 +020025[Makefile*]
26indent_style = tab
27indent_size = 8
Alex Bennée2c9192c2021-03-05 14:48:39 +000028emacs_mode = makefile
Gerd Hoffmanna62e20f2017-07-17 12:15:47 +020029
Paolo Bonzini139c1832020-02-04 12:41:01 +010030[*.{c,h,c.inc,h.inc}]
Gerd Hoffmanna62e20f2017-07-17 12:15:47 +020031indent_style = space
32indent_size = 4
Alex Bennée2c9192c2021-03-05 14:48:39 +000033emacs_mode = c
Marc-André Lureau1ad723e2018-08-21 12:35:28 +020034
Alex Bennée9b109f52019-05-30 10:40:28 +010035[*.sh]
36indent_style = space
37indent_size = 4
38
Alex Bennée9699e5f2019-05-08 14:42:51 +010039[*.{s,S}]
40indent_style = tab
41indent_size = 8
Alex Bennée2c9192c2021-03-05 14:48:39 +000042emacs_mode = asm
Alex Bennée9699e5f2019-05-08 14:42:51 +010043
Marc-André Lureau1ad723e2018-08-21 12:35:28 +020044[*.{vert,frag}]
Alex Bennée2c9192c2021-03-05 14:48:39 +000045emacs_mode = glsl
Marc-André Lureau1ad723e2018-08-21 12:35:28 +020046
47[*.json]
48indent_style = space
Alex Bennée2c9192c2021-03-05 14:48:39 +000049emacs_mode = python