xv6, line by line
.editorconfig

.editorconfig

text · 22 lines · annotated 100% · upstream

About this file

Settings for text editors, in the EditorConfig format. Many editors read this file, some on their own and some through a plugin, and adjust themselves when you open a file in the repository: which character ends a line, and how far to indent and with what. It changes nothing in the build; it only keeps edits consistent with the existing code.

The C rules match the style that make fmt enforces with .clang-format, and Emacs users get the same from .dir-locals.el.

1; https://editorconfig.org
3root = true
5[*]
6end_of_line = lf
7insert_final_newline = true
8indent_style = space
9indent_size = 4
11[*.{c,h}]
12indent_size = 2
14[*.S]
15indent_size = 8
17[*.ld]
18indent_size = 2
20[Makefile]
21indent_style = tab
22indent_size = 8