Commit | Line | Data |
---|---|---|
bf5ffbb0 PP |
1 | # Common text-editor configuration for Exim |
2 | # http://editorconfig.org/ | |
74f1526c PP |
3 | # |
4 | # This system sets attributes of the code results of editing, not of | |
5 | # how you set up the editor to do some helpful things for you. It's | |
6 | # deliberately limited, to be non-contentious and avoid bloat. | |
7 | # | |
8 | # In this file, we'll also collect _suggestions_ for text editor configs | |
9 | # for various text editors, to better work with what passes for a common | |
10 | # style in Exim. Use, or don't use, those as you see fit. | |
bf5ffbb0 PP |
11 | |
12 | # top-most EditorConfig file | |
13 | root = true | |
14 | ||
15 | # Unix-style newlines with a newline ending every file | |
16 | [*] | |
17 | end_of_line = lf | |
18 | insert_final_newline = true | |
1ef2730e HSHR |
19 | trim_trailing_whitespace = true |
20 | indent_style = space | |
21 | tab_width = 8 | |
bf5ffbb0 | 22 | |
3ae121c9 | 23 | [*.{c,h}{,-*}] |
bf5ffbb0 | 24 | indent_size = 2 |
1ef2730e HSHR |
25 | |
26 | [runtest] | |
27 | indent_size = 2 | |
bf5ffbb0 PP |
28 | |
29 | # Tab indentation (no size specified) | |
30 | [Makefile] | |
31 | indent_style = tab | |
32 | ||
74f1526c PP |
33 | # vim |
34 | # === | |
35 | # try: set cinoptions=>1s,{1s | |
36 | # | |
37 | # More complete: | |
38 | # if has("autocmd") | |
39 | # au BufNewFile,BufRead */*exim*/src/* set noai nosmartindent expandtab cindent sw=2 cinoptions=>1s,{1s | |
40 | # endif | |
41 |