Agricultural machinery can be electrified. There are alternatives to fossil fuel fertilizers. Land use can be prioritized in such a way to significantly lower the need of chemical fertilizers while maintaining current yield. Lowering the production of meat and other animal products will yield much more consumed calories per grown calorie.
The transformation of agriculture is inevitable or we will all die.
Similarly homes can be insulated, roofs can be made of heat reflecting materials, trees can be grown to provide shade. We can build cooling centers in cities.