Automatically saves the current file after every modification