Use editorconfig instead of a sprinkling of :vim: instructions

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-02-26 09:33:18 +10:00
parent cda3dc664a
commit 13775b56e5
7 changed files with 21 additions and 11 deletions

21
.editorconfig Normal file
View file

@ -0,0 +1,21 @@
root = true
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[*.{c,h}]
indent_style = tab
tab_width = 8
[*.py]
indent_style = space
indent_size = 4
charset = utf-8
[*.{yaml,tmpl}]
indent_style = space
indent_size = 2
charset = utf-8

View file

@ -1,5 +1,3 @@
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml:
######################################## ########################################
# # # #
# THIS FILE IS GENERATED, DO NOT EDIT # # THIS FILE IS GENERATED, DO NOT EDIT #

View file

@ -1,6 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# vim: set expandtab shiftwidth=4:
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
# #
# This script tests a few things against the commit messages, search for # This script tests a few things against the commit messages, search for
# `def test_` to see the actual tests run. # `def test_` to see the actual tests run.

View file

@ -1,5 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# vim: set expandtab shiftwidth=4:
# This file generates the .gitlab-ci.yml file that defines the pipeline. # This file generates the .gitlab-ci.yml file that defines the pipeline.

View file

@ -1,9 +1,6 @@
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:
#
# This file contains the configuration for the gitlab ci. # This file contains the configuration for the gitlab ci.
# See the .gitlab-ci/generate-gitlab-ci.py file for more info # See the .gitlab-ci/generate-gitlab-ci.py file for more info
distributions: distributions:
- name: fedora - name: fedora
version: '30' version: '30'

View file

@ -1,5 +1,3 @@
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml:
{# You're looking at the template here, so you can ignore the below {# You're looking at the template here, so you can ignore the below
warning. This is the right file to edit #} warning. This is the right file to edit #}
######################################## ########################################

View file

@ -1,5 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# vim: set expandtab shiftwidth=4:
# #
# Parses linux/input.h scanning for #define KEY_FOO 134 # Parses linux/input.h scanning for #define KEY_FOO 134
# Prints C header files or Python files that can be used as # Prints C header files or Python files that can be used as