The UK stopped generating electricity with coal last year. Commercial interests will keep the old ways going in many cases, but governments can make them less viable.
Coal mining is wrecking landscapes.
Solar is massively increasing around the world as it gets cheaper. Charging car batteries is a great use of it, but brings challenges. Put panels over parking spaces to keep the cars cooler and charged up whilst people are at work. Even better is to have a good (electric) bus service to get them there. It doesn't all have to be either/or. We need a mix of options.
BTW I travel to work by electric train. I've hardly ever driven to this job over 8 years.