After restarting my macbook, [f12] works (didn't make any changes with the .emacs file between restarts). strange.
Jai
Thank you for the response.
I do try it with [f12] and when pressing f12, it still says <f12> is undefined.
emacs version 24.1.1On Thu, Jul 26, 2012 at 4:49 PM, Jeremiah Dodds <jeremiah.dodds@gmail.com> wrote:
(global-set-key [f12] 'compile)Jai Dayal <dayalsoap@gmail.com> 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 <f12> is undefined
>
> How do I specify f keys for global-set-key in the .emacs file?
>
> Jai
>
>
--
Jeremiah Dodds
github: https://github.com/jdodds
irc : exhortatory