Skip to content

Commit

Permalink
.editorconfig: update the automatic mode setting for Emacs
Browse files Browse the repository at this point in the history
It seems the editor specific keywords have been deprecated in the main
editorconfig plugin:

  https://github.com/editorconfig/editorconfig-emacs#file-type-file_type_ext-file_type_emacs

Update the keywords to the suggested one and point users at the
extension.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210305144839.6558-1-alex.bennee@linaro.org>
  • Loading branch information
stsquad committed Mar 10, 2021
1 parent 327910d commit 2c9192c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .editorconfig
Expand Up @@ -4,6 +4,11 @@
# plugin.
#
# Check https://editorconfig.org for details.
#
# Emacs: you need https://github.com/10sr/editorconfig-custom-majormode-el
# to automatically enable the appropriate major-mode for your files
# that aren't already caught by your existing config.
#

root = true

Expand All @@ -15,17 +20,17 @@ charset = utf-8
[*.mak]
indent_style = tab
indent_size = 8
file_type_emacs = makefile
emacs_mode = makefile

[Makefile*]
indent_style = tab
indent_size = 8
file_type_emacs = makefile
emacs_mode = makefile

[*.{c,h,c.inc,h.inc}]
indent_style = space
indent_size = 4
file_type_emacs = c
emacs_mode = c

[*.sh]
indent_style = space
Expand All @@ -34,11 +39,11 @@ indent_size = 4
[*.{s,S}]
indent_style = tab
indent_size = 8
file_type_emacs = asm
emacs_mode = asm

[*.{vert,frag}]
file_type_emacs = glsl
emacs_mode = glsl

[*.json]
indent_style = space
file_type_emacs = python
emacs_mode = python

0 comments on commit 2c9192c

Please sign in to comment.