Some of Python files I work on have the following file-local variables:
# Local Variables:
# mode: python
# python-indent-offset: 4
# tab-width: 4
# indent-tabs-mode: t
# coding: utf-8
# End:
When viewing diffs in magit
it displays tabs using tab-width 8, rather than the file local variable.
Is there a way to make magit
honour file-local tab-width variable?
tab-width
value from the file-local variables in the underlying file, but I don't know that this makes much sense. A git diff can include pieces from multiple files, buttab-width
can only be set for the entire buffer, not individual pieces of it. Can you clarify what you want to do exactly?