Binding function keys in carbon-emacs
While I was using the "normal" X11 emacs unde开发者_开发技巧r Snow Leopard, my profile.el file had a line:
(global-set-key [f14] 'my_function)
However this binding does not work with carbon-emacs. What is strange is that if I execute the command "M-x global-set-key", and give it the right arguments (pressing the F14 key), it works!
Any hints?
-- Tsf
My line
(global-set-key [f14] 'my_function)
was in an auxiliary profile.el file loaded by the command
(load "profile")
in my .emacs file. When I moved it to the .emacs file itself, it worked! As a matter of fact the same happened with another definition I was having troubles with:
(setq visible-bell t)
used to disable unpleasant sounds.
-- Tsf
I'm using the normal gnu emacs for mac, probably from one of the vanilla builds..., and [f14] works fine for me... why are you using a non-standard emacs?
Granted, i'm using emacs 22, so maybe things changed, but I doubt it...
精彩评论