Agriculture, food product manufacturing and basic chemical manufacturing energy consumption aren't a particularly predominant component of total energy consumption.
Here's global electricity shares (agriculture is in "other" in most of these, food products and chemicals are part of Industry)
Here's gas:
Here's oil:
And here's coal:
As shares of the above "Industry" sectors, primary chemicals production is about 10 EJ of energy use, nearly all gas and coal, and that's all chemicals so is a lot broader than just ammonia (mostly made from the hydrogen in natural gas) and other fertiliser production. Food product manufacturing (ie processing, packaging etc) is closer to about 5 EJ, a mix of electricity and the various fuel sources that go into direct heat generation for boiling, steaming, drying etc.
At the end of the day though, most of this energy use with some well known key exceptions (especially the portion used as non-energy feedstocks) can be electrified, and therefore met by renewables just as easily as any other source of electricity. Also worth noting that as other demands on things like natural gas and coal and oil recede, those feedstock uses where they're needed for the hydrocarbons, not the energy, will surely become cheaper due to a surplus of supply.