help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keybinding


From: Burton Samograd
Subject: Re: keybinding
Date: Fri, 30 Jul 2010 14:34:22 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Uday S Reddy <address@hidden> writes:

> On 7/30/2010 4:36 AM, Z wrote:
> you can add to it a function that sets C-[down] to the same thing that
> C-c C-e is set to

To find out the name of the function, you can use C-h k C-c C-e.

> (add-hook 'caml-mode-hook
>           (lambda ()
>              (local-set-key "C-[down]" 
> the-function-that-sends-current-phrase))))

Should be:

(add-hook 'caml-mode-hook
          (lambda ()
             (local-set-key (kbd "C-<down>") 
'the-function-that-sends-current-phrase)))

> PS: The Emacs aficionados reading this list might think about why it
> needs to be this complicated!

Sometimes that's just how it is with this much extensability.

--
Burton Samograd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]