British historian, minister of religion, and principal of the University of Edinburgh (1721-1793) (1721–1793)