Disable persistent undo, other minor tweaks.