emacs-gdscript-mode icon indicating copy to clipboard operation
emacs-gdscript-mode copied to clipboard

The editorconfig settings are overridden

Open oeN opened this issue 5 years ago • 4 comments

I'm submitting a...

  • [x] Bug report.
  • [ ] Feature request.

Bug report

I have the editorconfig package enabled and an .editorconfig file:

root = true

[*]
indent_size = 2
indent_style = tab

[*.yml]
indent_style = space
indent_size = 2

I'm using Doom Emacs :)

What is the current behavior? When editing a gdscript file indenting from the NORMAL mode with Shift+>+> works correctly but from the INSERT mode if I press tab the indent size used is 4.

If I change the indent size to 2 with gdscript-indent-offset it works as expected

What is the expected behavior? Let the editorconfig preference overrides the indent size configured for gdscript-mode

Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.

  1. Enable the editoconfig package
  2. Create an .editorconfig file like the one above (or with different indent size between editor config and gdscript-mode)
  3. Try to indent a line

Thanks!

oeN avatar Apr 21 '20 09:04 oeN

Thanks for the report. That's strange to me, gdscript-indent-offset shouldn't affect anything other than .gd files.

NathanLovato avatar Apr 23 '20 13:04 NathanLovato

Thanks for the reply :) Sorry, I didn't explain well enough, the problem is on the .gd files this problem doesn't affect other file types, for example on a .py file the indentation is consistent between the TAB and the >+> of evil

oeN avatar Apr 24 '20 07:04 oeN

I think the issue is from Emacs editorconfig. I've opened an PR in https://github.com/editorconfig/editorconfig-emacs/pull/300 to resolve this issue.

jcs090218 avatar Apr 22 '23 19:04 jcs090218

@oeN Now the https://github.com/editorconfig/editorconfig-emacs/pull/300 PR has merged, can you download the latest version and try to see if it works?

jcs090218 avatar Apr 26 '23 22:04 jcs090218