His feat in holding onto the seat of Moray for the SNP with an increased and comfortable majority in a by-election a year before Scottish voters went to the polls in May 2007 was held up as an example of things to come .