electric-spacing.el: Make it a local mode.

Each major-mode hook should enable/disable it.
Merge fix from elpa.