Open your favorites menu (default - hit q)
Hover the mouse pointer over the spell you want to hotkey
Press a number key from 1-8
Voila.
Protip -- you can switch a spell to your off hand by double-tapping the hotkey
Although this is PC-specific, it would be great to sticky this in the general forum. Most of the questions I read about hotkeys on the PC version are in the general forum it seems.

