Organocatalytic Lewis base functionalisation of carboxylic acids, esters and anhydrides via C1-ammonium or azolium enolates.