This is like assuming people in africa need telephone lines strewn to every home in order to have telecommunications. The developing world doesn't need oil. It needs solar panels and ever cheaper batteries.
None of this requires fossil fuels and small rural villages in poor countries are never going to get electricity if they have to wait for large power plants and long distance transmission lines to be built. It makes far more sense for a village to have a solar farm, a battery bank and a small local grid.
I assume current technology requires significant fossil fuels to be used to manufacture and transport the type of batteries that can replace the heavy lifting that fossil fuels do.
We have electric cars and whatnot, but they're still far more expensive than fossil fuel cars with less bang for the buck in terms of power and portability. I doubt we will see cost effective construction vehicles, ships, planes, etc. powered via batteries anytime soon, at least not on a timescale that makes a material difference.
The BYD Seagull costs $10,150. If there wasn't tarrifs on China EVs would be significantly cheaper. The cost of batteries has been decreasing exponentially just like the cost of solar. Electric tractor trailers are already on the road. Your pessimism about electric heavy machinery is misplaced.
From my perspective it's like you're looking at the market for telephones in 2004 and remarking that most phones are landlines and most portable phones are flip phones and therefore you don't see a future for smartphones.
Solar and wind are cheaper than any other form of electricity in history. (Often even when paired with a storage facility) The fact that it doesn't always shine or blow when needed is driving massive investment into storage technology. The world is changing rapidly. You're not paying attention.
The growth of energy use is mostly in countries that are industrializing/developing. Places like India/Indonesia/Vietnam/... are where most energy will be added and they'll all add coal.
And while telephone wires might not be needed, much more energy intensive infrastructure like water and sewer pipes and power lines are needed.