Based on the information provided, the correct answer would be:
A. He often heard remarks that expressed a desire for electricity to be used for writing.
This option implies that a combination of interest and context led Samuel Morse to develop his idea, which aligns with the historical background of Morse code's invention.