There is a project called Piglit with a .dir_locals.el
file like this:
((nil . ((indent-tabs-mode . t)))
(python-mode . ((indent-tabs-mode . nil))))
I think the intention is that most files in the project should use indent-tabs-mode
but Python files should not. However this doesn’t seem to work. As far as I can tell the definition for the nil
mode overrides the definition for the Python mode and Emacs enables tab indentation for Python files. Is there any way to correctly implement the intended behaviour?
.editorconfig
file. I have seen an instance before where that was interfering with the other tab settings in emacs. This may or may not be an instance in this case. I will have to try and reproduce the issue myself.