Alex Salmond served as first minister of Scotland from 2007 to 2014 and was leader of the Scottish National Party on two occasions.