Skip to content

Commit c1beef4

Browse files
committed
Add an .editorconfig file
Taken from Nix's.
1 parent 1319796 commit c1beef4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# EditorConfig configuration for PatchELF
2+
# http://EditorConfig.org
3+
4+
# Top-most EditorConfig file
5+
root = true
6+
7+
# Unix-style newlines with a newline ending every file, UTF-8 charset
8+
[*]
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
charset = utf-8
13+
14+
# Match Nix files, set indent to spaces with width of two
15+
[*.nix]
16+
indent_style = space
17+
indent_size = 2
18+
19+
# Match C++/C/shell, set indent to spaces with width of four
20+
[*.{hpp,cc,hh,c,h,sh}]
21+
indent_style = space
22+
indent_size = 4
23+
24+
# Match diffs, avoid to trim trailing whitespace
25+
[*.{diff,patch}]
26+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)