]> git.proxmox.com Git - mirror_qemu.git/blob - .editorconfig
qga: add qga_open_cloexec() helper
[mirror_qemu.git] / .editorconfig
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 #
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 #
12
13 root = true
14
15 [*]
16 end_of_line = lf
17 insert_final_newline = true
18 charset = utf-8
19
20 [*.mak]
21 indent_style = tab
22 indent_size = 8
23 emacs_mode = makefile
24
25 [Makefile*]
26 indent_style = tab
27 indent_size = 8
28 emacs_mode = makefile
29
30 [*.{c,h,c.inc,h.inc}]
31 indent_style = space
32 indent_size = 4
33 emacs_mode = c
34
35 [*.sh]
36 indent_style = space
37 indent_size = 4
38
39 [*.{s,S}]
40 indent_style = tab
41 indent_size = 8
42 emacs_mode = asm
43
44 [*.{vert,frag}]
45 emacs_mode = glsl
46
47 [*.json]
48 indent_style = space
49 emacs_mode = python