Use hooks to load mode configurations where feasible

and eval-after-load where it is not.

I don't know how I didn't think of this years ago.