Save settings in the config file.