Oil/gas will eventually go away as the main thing to spend. From simple small cars to a huge truck, everything will be based on electricity. However, we need to make sure that we create that energy in a clean way as well. If you burn coal and create energy and then use that for your Tesla, that’s not clean at all, this is not helpful to anyone, it is not better than oil/gas. If you do hydro, solar, wind and such then using that for your electric car could be something awesome for sure.
We are talking about something that is better for the distant future, because we could keep on investing renewable energy but electric cars all in itself by default is not a good thing if you produce bad energy from bad sources.
It's getting there but with a wrong way though. We have been going higher on solar and win for sure, but we are getting higher on hydro and nuclear energy as well, specially the nuclear plants seems to be the riskiest and yet the most profitable one without ever hurting the world until it collapses.
Chernobyl is not a disaster that just happened, it is also a cautionary tale for all the future ones as well, one happened in japan as well if I am not wrong. Long story short, we should be moving to spending electricity instead of fuel, but we should also focus on clean energy that is not dangerous for us as well, since dangerous ones could kill us very quickly.