Here’s a copy of the first paper linking CO2 to increased atmospheric temperature, published by Mrs. Eunice Foote, read before the American Association for the Advancement of Science in 1856!
That was three years BEFORE Darwin published On the Origin of Species!!!
The receiver containing the gas [CO2] became itself much heated - very sensibly more so than the other - and on being removed, it was many times as long in cooling.
An atmosphere of that gas would give to our earth a high temperature; and if as some suppose, at one period of its history the air had mixed with it a larger proportion than at present, an increased temperature from its own action as well as increased weight must have necessarily resulted.
On comparing the sun’s heat in different gases, I found it to be in hyrdrogen gas, 104°; in common air, 106°; in oxygen gas, 108° and in carbonic acid gas [CO2], 125°