11ad723e9SMarc-André Lureau# EditorConfig is a file format and collection of text editor plugins 21ad723e9SMarc-André Lureau# for maintaining consistent coding styles between different editors 31ad723e9SMarc-André Lureau# and IDEs. Most popular editors support this either natively or via 41ad723e9SMarc-André Lureau# plugin. 51ad723e9SMarc-André Lureau# 61ad723e9SMarc-André Lureau# Check https://editorconfig.org for details. 7*2c9192c1SAlex Bennée# 8*2c9192c1SAlex Bennée# Emacs: you need https://github.com/10sr/editorconfig-custom-majormode-el 9*2c9192c1SAlex Bennée# to automatically enable the appropriate major-mode for your files 10*2c9192c1SAlex Bennée# that aren't already caught by your existing config. 11*2c9192c1SAlex Bennée# 121ad723e9SMarc-André Lureau 13a62e20f6SGerd Hoffmannroot = true 14a62e20f6SGerd Hoffmann 15a62e20f6SGerd Hoffmann[*] 16a62e20f6SGerd Hoffmannend_of_line = lf 17a62e20f6SGerd Hoffmanninsert_final_newline = true 18a62e20f6SGerd Hoffmanncharset = utf-8 19a62e20f6SGerd Hoffmann 201ad723e9SMarc-André Lureau[*.mak] 211ad723e9SMarc-André Lureauindent_style = tab 221ad723e9SMarc-André Lureauindent_size = 8 23*2c9192c1SAlex Bennéeemacs_mode = makefile 241ad723e9SMarc-André Lureau 25a62e20f6SGerd Hoffmann[Makefile*] 26a62e20f6SGerd Hoffmannindent_style = tab 27a62e20f6SGerd Hoffmannindent_size = 8 28*2c9192c1SAlex Bennéeemacs_mode = makefile 29a62e20f6SGerd Hoffmann 30139c1837SPaolo Bonzini[*.{c,h,c.inc,h.inc}] 31a62e20f6SGerd Hoffmannindent_style = space 32a62e20f6SGerd Hoffmannindent_size = 4 33*2c9192c1SAlex Bennéeemacs_mode = c 341ad723e9SMarc-André Lureau 359b109f56SAlex Bennée[*.sh] 369b109f56SAlex Bennéeindent_style = space 379b109f56SAlex Bennéeindent_size = 4 389b109f56SAlex Bennée 399699e5fbSAlex Bennée[*.{s,S}] 409699e5fbSAlex Bennéeindent_style = tab 419699e5fbSAlex Bennéeindent_size = 8 42*2c9192c1SAlex Bennéeemacs_mode = asm 439699e5fbSAlex Bennée 441ad723e9SMarc-André Lureau[*.{vert,frag}] 45*2c9192c1SAlex Bennéeemacs_mode = glsl 461ad723e9SMarc-André Lureau 471ad723e9SMarc-André Lureau[*.json] 481ad723e9SMarc-André Lureauindent_style = space 49*2c9192c1SAlex Bennéeemacs_mode = python 50