summaryrefslogtreecommitdiff
path: root/.editorconfig
blob: 90ad8b43a9e24d1a96b1dbe5f2ee90483106f3b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Common text-editor configuration for Exim
# http://editorconfig.org/
#
# This system sets attributes of the code results of editing, not of
# how you set up the editor to do some helpful things for you.  It's
# deliberately limited, to be non-contentious and avoid bloat.
#
# In this file, we'll also collect _suggestions_ for text editor configs
# for various text editors, to better work with what passes for a common
# style in Exim.  Use, or don't use, those as you see fit.

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
tab_width = 8

[*.{c,h}{,-*}]
indent_size = 2

[runtest]
indent_size = 2

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

# vim
# ===
# try: set cinoptions=>1s,{1s
#
# More complete:
# if has("autocmd")
#   au BufNewFile,BufRead */*exim*/src/* set noai nosmartindent expandtab cindent sw=2 cinoptions=>1s,{1s
# endif