it's in the scene preferences under UNDO click the little icon above the script editor on the bottom right corner