Skip to content

Commit 3ceac80

Browse files
committed
Initialize a basic editorconfig
Based on NixOS/nixpkgs' editorconfig + some for Perl.
1 parent ba1ea8d commit 3ceac80

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.editorconfig

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.{cc,hh,hpp,pl,pm,sh,t}]
12+
indent_style = space
13+
intend_size = 4
14+
15+
[Makefile]
16+
indent_style = tab
17+
18+
[*.nix]
19+
indent_style = space
20+
indent_size = 2
21+
22+
# Match diffs, avoid to trim trailing whitespace
23+
[*.{diff,patch}]
24+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)