I love a lot of The Smiths songs, and this is a cool story about Johnny Marr writing one of them, ‘Heaven Knows I’m Miserable Now’:
http://www.nme.com/news/the-smiths/68704
What he says is definitely true, sometimes the guitars help you write the song.
SJ