That thought worries me greatly. It's a fine goal, and has much support from those in cities, but for those of us living in mining areas the realities are somewhat different. We are told that renewables will employ those ousted from the mining industry, but that's a pipe dream. In our area we have large PV and wind generation systems being, or having recently been, installed. What we have seen is short term employment of "muscle" to do the earthmoving, construction etc., but all the technical stuff is either FIFO workers or done off site. Once the system is up and running, employment drops to near zero - I am told the large wind farm near us employs a handful of permanent local staff (I've read just two people are required full time). Compare this to the thousands of people employed at the local mines. The vast majority of those mineworkers are "muscle", largely unsuited to anything other than driving big machines, and are used to being paid big$ for doing so......
When a mine closes, all its employees will be looking for work. There is nothing local for them to do, even if they took jobs as farm hands (jobs for which they are neither suited nor required) they would be looking at perhaps 70% pay cuts, and would be unable to pay their mortgages. So their only choice is to move or claim the dole (and sell their house!). All the direct mining support industries, engineering supply companies, and most of the irrigation/pumping companies would go bust, so their employees are also on the dole. Car dealerships and mechanics have no mines to buy fleets of vehicles, nor mine workers wanting new cars every couple of years. In short, the knock-on effect is that every other local business is then in trouble - no customers and nobody has any money to spend. People move away to try to find jobs, local businesses fold. Eventually even the supermarkets have too few customers to generate enough income for their corporate heads, so they close down.
For those of us living in a mining economy, those mines shutting is a terrifying concept!