diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2021-10-16 17:46:10 +0100 |
---|---|---|
committer | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-10-20 12:26:20 +0300 |
commit | ef301893a5bd149767110841f8b0a7ebb7dee00e (patch) | |
tree | ccae3b809858167d4472841b92a17d6ac2d8e68b | |
parent | 32e851d2bc54d2972dbf2060e03928b0f6f131ca (diff) | |
download | mpv-ef301893a5bd149767110841f8b0a7ebb7dee00e.tar.bz2 mpv-ef301893a5bd149767110841f8b0a7ebb7dee00e.tar.xz |
editorconfig: add initial file/config
editorconfig configuration files hold editor style hints, and
is supported by many popular editors. See https://editorconfig.org/ .
The vast majority of the mpv source/text files are already styled as
4 space indentation, trailing newline at EOF, and UTF-8 encoding.
This commit adds a single .editorconfig root file which applies these
rules to all files using the glob "[*]".
If it turns out to be too inclusive then we can narrow it down later.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r-- | .editorconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..f16717b802 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +# To use this config on you editor, follow the instructions at: +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +insert_final_newline = true +indent_style = space +indent_size = 4 |