Too late for Christmas this year but such a great idea. They make the sugar cookies as usual. Let them cool, then turn them over and use a line of icing on the back to stick the candycane onto it. Of course, make sure you position the candycane to be hooked onto things. The site says to let it set about 45 minutes.
Source: Hanging Stocking Sugar Cookies