Not a bad idea, until you run into the practical problem of trying to make aircraft or large trucks run on electric motors. Ships can be dealt with; they’ll just have to run on nuclear as well.
Yes that is a problem, but we could use electricity to generate hydrogen that could be used to power many trucks and cars. Although not a perfect plan, the goal is to have a country’s electric grid that uses no hydrocarbons (coal, oil or gas) to generate electricity. Domestically produced hydrocarbons would be more then enough to provide oil, gas and coal for fuel used in air travel (limited special cases) and feed stock in the plastics, chemical and the pharmaceutical industries. Then all the turd world oil despots can go #$%@&!! themselves, until then we are at their mercy.
Some of the largest construction equipment ever built was powered by electric motors, and made be Le Tourneau.