-
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
Should we disable editorconfig if .dir-locals is present? #148
Comments
See #141 for a little more in-depth analysis. I personally like the existing behavior (let dir-locals overwrite editorconfig values), but I think disabling editorconfig entirely when dir-locals are present seems good too. It would be nice to have this configurable too :) |
Really sorry I totally forgot to respond to this thread. IMO we don't need to worry about this, in most cases the values in .editorconfig and .dir-locals.el should be consistent so it should be "fixed" if values in .editorconfig and dir-locals are different. AFAIK currently editorocnfig-emacs does not touch variables if they are not defined in .editorconfig (so the values from dir-locals will be used if defined), and it is OK. |
It would be nice if editorconfig in a subdirectory still applied if .dir-locals.el isn't in that directory. Mesa has a top level dir-locals and editorconfig, and then also editorconfig in some subdirectories to override the top level behavior. Now I think the top level dir-locals overrides the local editorconfig. |
Thanks! It makes sense, but unfortunately it is difficult because |
I added two variables |
.dir-locals.el
often specifies a lot of style settings (and can be more detailed). Should we disable editorconfig in this case? Or, at least, leave this option to be set in.dir-locals
?The text was updated successfully, but these errors were encountered: