Rename file and add mode line.