Neural recordings track how neurons link environments to emotional events.