Skip to content

Commit 1e7a191

Browse files
eli-schwartzallanmcrae
authored andcommitted
Add http://EditorConfig.org configuration
Signed-off-by: Eli Schwartz <[email protected]> Signed-off-by: Allan McRae <[email protected]>
1 parent 076b618 commit 1e7a191

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig configuration for pacman
2+
# http://EditorConfig.org
3+
4+
# Top-most EditorConfig file
5+
root = true
6+
7+
# Unix-style newlines without trailing whitespaces, but with a newline
8+
# ending every file, utf-8 charset, set indent to tabs
9+
[*]
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
charset = utf-8
14+
indent_style = tab
15+
16+
[NEWS,HACKING]
17+
indent_style = space
18+
19+
[*.py]
20+
indent_style = space

HACKING

+2-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ Coding Style
1111

1212
1. All code should be indented with tabs. (Ignore the use of only spaces in
1313
this file.) A tab size of two spaces is used when calculating line widths,
14-
which should be a maximum of 80 characters. By default, source files
15-
contain the following Vim modeline:
16-
+
17-
[source,C]
18-
-------------------------------------------
19-
/* vim: set noet: */
20-
-------------------------------------------
14+
which should be a maximum of 80 characters. An EditorConfig file is used
15+
to set this project-wide default.
2116

2217
2. When opening new blocks such as 'while', 'if', or 'for', leave the opening
2318
brace on the same line as the beginning of the codeblock. The closing brace

0 commit comments

Comments
 (0)