about summary refs log tree commit diff
path: root/editorconfig/.editorconfig
blob: 0bb0c6e2435b0453b01cbf51627b9bc32b280aa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

# Assembly
[*.{asm,s,S}]
indent_style = tab

# C/C++
[*.{c,h,cc,hh,cpp,hpp,cxx,hxx}]
indent_style = tab
max_line_length = 80
trim_trailing_whitespace = false
insert_final_newline = false

# C#
[*.cs]
indent_style = tab

# Go
[*.go]
indent_style = tab

# Python
[*.py]
max_line_length = 80

# Haskell
[*.{hs,lhs}]
indent_size = 2

# Emacs Lisp
[*.el]
indent_size = 2

# Common Lisp
[*.{lisp,cl}]
indent_size = 2

# Scheme
[*.scm]
indent_size = 2

# Make
[{Makefile,*.mk}]
indent_style = tab

# CMake
[{CMakeLists.txt,*.cmake}]
indent_style = tab

# Autotools
[*.{ac,am}]
indent_style = tab

# Shell
[*.{sh,bash}]
indent_style = tab
insert_final_newline = false
trim_trailing_whitespace = false

# Gentoo
[*.ebuild]
indent_style = tab

# RPM Spec
[*.spec]
insert_final_newline = false
trim_trailing_whitespace = false

# Nix
[*.nix]
indent_size = 2

# XML
[*.xml]
indent_style = tab
insert_final_newline = false
trim_trailing_whitespace = false

# Git
[*.git*]
indent_style = tab

Consider giving Nix/NixOS a try! <3