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
Magit views don't respect editorconfig. #288
Comments
Hmmm... I don't think this is editorconfig's issue since the diff view should have the indentation display correctly, isn't it? I'm reading the codebase now, but I don't think editorconfig should be responsible for the diff mode. 😕 |
Basically editorconfig works for files, and the diff view is not related to a file. So, at least, currently this is an expected behavior... One possible idea is implementing a function that gets indent values from .editorconfig and sets them to diff-mode, and adding that to diff-mode-hook. |
I've opened up a discussion on the magit discussion board
Perhaps they need to expose some apis so you can get the right hints to apply the correct settings in the diff / revision view.
The commit view looks easier as you can just glob against the git "magic" i.e.
.~master~
in the buffer name (if that's how it works)The text was updated successfully, but these errors were encountered: