Doc: clarify the syntax of the "begin <section>"
[exim.git] / .editorconfig
CommitLineData
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
13root = true
14
15# Unix-style newlines with a newline ending every file
16[*]
17end_of_line = lf
18insert_final_newline = true
19
20[*.{c,h}]
21indent_style = space
22indent_size = 2
23tab_width = 8
24trim_trailing_whitespace = true
bf5ffbb0
PP
25
26# Tab indentation (no size specified)
27[Makefile]
28indent_style = tab
29
74f1526c
PP
30# vim
31# ===
32# try: set cinoptions=>1s,{1s
33#
34# More complete:
35# if has("autocmd")
36# au BufNewFile,BufRead */*exim*/src/* set noai nosmartindent expandtab cindent sw=2 cinoptions=>1s,{1s
37# endif
38