Binding function keys in carbon-emacs

380 Views Asked by At

While I was using the "normal" X11 emacs under 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

2

There are 2 best solutions below

0
On

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

1
On

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...