Call switchMode after saving

So it colors code after saving new files, renames to a different file
type etc.