Fix 'desktop-modes-not-to-save with major-modes