Its already here man.  There are already countries that get the majority of power from renewable sources - in fact CANADA IS ONE OF THEM.

Starting in the 2020s numerous countries are banning the sale of new gas powered cars

By 2030, EVs are expected to outsell gas power cars.  By 2040s, EVs will be the majority of vehicles on the road.  

Also by 2040, oil usage will have peaked and a STEEP down-curve sets in until around 2070 whereby oil usage will be almost non-existent except in very specific uses that do'nt require tons of oil

Plan your economy accordingly