 In the same year he became Joint Professor of Oriental Languages in University of Edinburgh.In 1793, aged 33, he was appointed Principal of the University, and served in this role until 1840.In 1800 he was living at Ramsay Gardens at the top of the Royal Mile in Edinburgh.