'spur-of-the-moment' definitions:

Definition of 'spur-of-the-moment'

(from WordNet)
adjective
In response to an unforeseen need; "a spur-of-the-moment party"