He was president of the Royal Society (1990–1995), master of Trinity College, Cambridge (1990–1997), chancellor of the University of Leicester (1995–2005), and president of the Royal Society of Edinburgh (2005–2008). From 1997 until his death, he was an honorary professor at the University of Edinburgh.