-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have to manually apply EditorConfig settings for .spec files #197
Comments
Thaks for your details report. This definitely is a bug and I'll look into and try to solve this, but I think following code can be used as a workaround for this: (add-hook 'rpm-spec-mode-hook
'editorconfig-mode-apply) |
@10sr I'm also having a hard time finding out the culprit commit. When loading |
@terrycloth I just fixed this so could you check the latest version? @xuhdev Thanks! I'm not really familiar with spacemacs, but it seems there are no problem with current master branch... I hope the recent commits fix this, too. |
It looks like a mistest on my end. Thanks @10sr ! Feel free to close this issue if @terrycloth agrees |
Sorry for the delayed response. But yes, after updating to editorconfig-20190603.1124 from MELPA, I no longer have to run |
The problem
I maintain several small RPM packages. When I first open an RPM .spec within a project which has an
.editorconfig
settings file, editorconfig-mode seems to apply some settings but not others.insert_final_newline
andtrim_trailing_whitespace
work as expected, butmax_line_length
does not.When I check the
editorconfig-display-current-properties
command, I get "Properties are not applied to the current buffer yet." Unless or until I runeditorconfig-apply
. After that, the EditorConfig settings work perfectly, but I have to redo this every time I open a .spec file in a new Emacs session. So far I've only noticed it for .spec files --- .md and other files in my projects have no issue.My system setup
~/.local/
with~/.local/bin/
in my$PATH
)My Emacs config
The variable
editorconfig-exec-path
is left at the default valueeditorconfig
since I assume that uses whichever binary is in my environment's$PATH
. But I did try replacing it with the actual absolute path, and it didn't make any difference.My .editorconfig file for this RPM project
The text was updated successfully, but these errors were encountered: