| 1 | # Common text-editor configuration for Exim |
| 2 | # http://editorconfig.org/ |
| 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. |
| 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 |
| 19 | |
| 20 | [*.{c,h}] |
| 21 | indent_style = space |
| 22 | indent_size = 2 |
| 23 | tab_width = 8 |
| 24 | trim_trailing_whitespace = true |
| 25 | |
| 26 | # Tab indentation (no size specified) |
| 27 | [Makefile] |
| 28 | indent_style = tab |
| 29 | |
| 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 | |