Combined cycle plants have been around for a while. Another common thing is https://en.wikipedia.org/wiki/Cogeneration, which dates back to the start of electricity production. Both are more efficient than the days when no one cared, but they still spew carbon. Your heat pump can run on wind.