Great overview of file local variables in Emacs: https://jblevins.org/log/file-local-variables This gives you file-specific settings.