After restarting my macbook, [f12] works (didn't make any changes with the .emacs file between restarts). strange. Jai On Thu, Jul 26, 2012 at 4:52 PM, Jai Dayal wrote: > Thank you for the response. > > I do try it with [f12] and when pressing f12, it still says is > undefined. > > emacs version 24.1.1 > > > On Thu, Jul 26, 2012 at 4:49 PM, Jeremiah Dodds wrote: > >> Jai Dayal writes: >> >> > Hi, I'm trying to bind f12 to compile. In my .emacs file, i do >> > >> > (global-set-key "f12" 'compile) >> > >> > however, every time I press f12, it says is undefined >> > >> > How do I specify f keys for global-set-key in the .emacs file? >> > >> > Jai >> > >> > >> >> (global-set-key [f12] 'compile) >> >> -- >> Jeremiah Dodds >> >> github: https://github.com/jdodds >> irc : exhortatory >> > >