Exactly. Gates is being too cute by half here.
He starts by claiming that only 25% of greenhouse gases come from making electricity; a fact that is technically true but very misleading. He then goes on to name the contributors of the other 75% and almost all of them (with the exception of methane from farming) produce carbon through using energy in the form of fossil fuels.
Solving the energy production problem solves the vast majority of these other problems.