Skip to content

Commit 2c9192c

Browse files
committed
.editorconfig: update the automatic mode setting for Emacs
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 <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]> Message-Id: <[email protected]>
1 parent 327910d commit 2c9192c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.editorconfig

+11-6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# plugin.
55
#
66
# Check https://editorconfig.org for details.
7+
#
8+
# Emacs: you need https://github.com/10sr/editorconfig-custom-majormode-el
9+
# to automatically enable the appropriate major-mode for your files
10+
# that aren't already caught by your existing config.
11+
#
712

813
root = true
914

@@ -15,17 +20,17 @@ charset = utf-8
1520
[*.mak]
1621
indent_style = tab
1722
indent_size = 8
18-
file_type_emacs = makefile
23+
emacs_mode = makefile
1924

2025
[Makefile*]
2126
indent_style = tab
2227
indent_size = 8
23-
file_type_emacs = makefile
28+
emacs_mode = makefile
2429

2530
[*.{c,h,c.inc,h.inc}]
2631
indent_style = space
2732
indent_size = 4
28-
file_type_emacs = c
33+
emacs_mode = c
2934

3035
[*.sh]
3136
indent_style = space
@@ -34,11 +39,11 @@ indent_size = 4
3439
[*.{s,S}]
3540
indent_style = tab
3641
indent_size = 8
37-
file_type_emacs = asm
42+
emacs_mode = asm
3843

3944
[*.{vert,frag}]
40-
file_type_emacs = glsl
45+
emacs_mode = glsl
4146

4247
[*.json]
4348
indent_style = space
44-
file_type_emacs = python
49+
emacs_mode = python

0 commit comments

Comments
 (0)