The musical score for Good Will Hunting was composed by Danny Elfman , who had previously collaborated with Gus Van Sant on To Die For and would go on to score many of the director's other films. The film also features many songs written and recorded by singer-songwriter Elliott Smith . His song " Miss Misery " was nominated for the Academy Award for Best Original Song , but lost to " My Heart Will Go On " from Titanic . Elfman's score was also nominated for an Oscar , but lost to Titanic as well. On September 11, 2006, The Today Show used Elfman's song "Weepy Donuts" while Matt Lauer spoke during the opening credits.