Enable savehist-mode *after* setting its variables.

Regression introduced in 31632cdba.