How to use "spur" in a sentence

Sentences

Although he spent more than half his time working in his Las Vegas office, he often had reason to fly to far points at the spur of the moment: Reno, Elko, even out of the state to Texas, California, Arizona, New Mexico, Utah

He wasn't scheduled for R and R, and on the spur of the moment he couldn't think of an excuse to sign out one of the Range Rovers, so he tried to escape on foot