[Top][All Lists]

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

Re: Key bindings

From: Tassilo Horn
Subject: Re: Key bindings
Date: Thu, 29 Mar 2007 12:49:28 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (gnu/linux)

SteveFKI <address@hidden> writes:

Hi Stephen,

>    (global-set-key [home] 'beginning-of-line)
>    (define-key global-map [end] 'end-of-line)
>    (define-key global-map [C-home] 'beginning-of-buffer)
>    (define-key global-map [C-end] 'end-of-buffer)
> I think this should work, and as you will see I have tried two ways to
> map the HOME key. However, every time I press HOME it opens Search in
> the mini-buffer (as if it is mapped to C-s). The END key works fine.

Use `C-h k' to get the binding string and use that with the `kbd'-macro.

,----[ C-h k <home> ]
| <home> runs the command move-beginning-of-line

,----[ C-h k <C-home> ]
| <C-home> runs the command beginning-of-buffer

You see, emacs 22 already has the bindings you want. :-)

Nevertheless, if you would want to rebind them, you would do

  (global-set-key (kbd "<C-home>") 'some-function)

A child of five could understand this! Fetch me a child of five!

reply via email to

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