automatically apply settings after opening a new file.