Efficient syntheses of imidazolo[1,2-a]pyridines and -[2, 1-a]isoquinolines.