I'm using stock GNU Emacs 30.2, with only the single following line added to ~/.config/emacs/init.el:
When I open a file that's right next to an .editorconfig file, M-x editorconfig-display-current-properties returns "Properties are not applied to current buffer yet." Only running M-x editorconfig-apply applies said properties and allows the previous command to show me the editorconfig properties.
That's a problem in itself, but the more serious issue is that even after applying these properties, Emacs doesn't seems to respect indent_style (e.g. When I press <tab> to indent, I get spaces instead of a tab character).
- I've deleted the ~/.cache/emacs folder.
- I've tried with .c, .js and .prolog files, and the properties are not automatically applied for any of these. Even after applying them manually,
<tab> still inserts spaces.
.editorconfig
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = tab
trim_trailing_whitespace = true
Output of M-x editorconfig-display-current-properties
(After doing M-x editorconfig-apply)
# EditorConfig for /home/bbergeron/Projects/coinflip/coinflip.c
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = tab
trim_trailing_whitespace = true
System Info:
- Artix Linux (not using any third-party package repository)
- GNU Emacs 30.2
I also tried with GNU Emacs 30.2 on Gentoo, and it's not working either.
EDIT: This issue was initially about no properties being respected at all; however, this was only the case when using evil-mode during my first tests. I subsequently changed my settings without tracking the sequence of these tests. What is certain is that the properties are not applied automatically, and indent_style is not being respected.
I'm using stock GNU Emacs 30.2, with only the single following line added to
~/.config/emacs/init.el:(editorconfig-mode 1)When I open a file that's right next to an .editorconfig file,
M-x editorconfig-display-current-propertiesreturns "Properties are not applied to current buffer yet." Only runningM-x editorconfig-applyapplies said properties and allows the previous command to show me the editorconfig properties.That's a problem in itself, but the more serious issue is that even after applying these properties, Emacs doesn't seems to respect indent_style (e.g. When I press
<tab>to indent, I get spaces instead of a tab character).<tab>still inserts spaces..editorconfig
Output of
M-x editorconfig-display-current-properties(After doing
M-x editorconfig-apply)System Info:
I also tried with GNU Emacs 30.2 on Gentoo, and it's not working either.
EDIT: This issue was initially about no properties being respected at all; however, this was only the case when using evil-mode during my first tests. I subsequently changed my settings without tracking the sequence of these tests. What is certain is that the properties are not applied automatically, and indent_style is not being respected.