 His father was a manufacturer and merchant in Duns, and lived to witness the literary celebrity of his son, as his death did not occur until 1828.Thomas was educated at the High School in Edinburgh.He was nursed in the class of Secession called "Anti-burghers" during the time when it still retained much of the primitive earnestness and simplicity of the old days of the covenant.