all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Key bindings
Date: Thu, 29 Mar 2007 12:49:28 +0200	[thread overview]
Message-ID: <87odmcnx3b.fsf@baldur.tsdh.de> (raw)
In-Reply-To: mailman.1572.1175163715.7795.help-gnu-emacs@gnu.org

SteveFKI <stephen.brown@eu.fkilogistex.com> 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)

Bye,
Tassilo
-- 
A child of five could understand this! Fetch me a child of five!

       reply	other threads:[~2007-03-29 10:49 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1572.1175163715.7795.help-gnu-emacs@gnu.org>
2007-03-29 10:49 ` Tassilo Horn [this message]
2007-03-29 13:19   ` Key bindings SteveFKI
2007-03-29 20:16     ` Peter Dyballa
2007-03-29 20:49       ` SteveFKI
2007-03-29 21:22         ` Peter Dyballa
     [not found]   ` <mailman.1576.1175174562.7795.help-gnu-emacs@gnu.org>
2007-03-29 20:16     ` Malte Spiess
2007-03-29 21:02       ` SteveFKI
2007-03-29 20:22     ` Tassilo Horn
2007-03-29 10:19 SteveFKI
     [not found] <mailman.1327.1122065988.20277.help-gnu-emacs@gnu.org>
2005-07-22 21:44 ` Charles philip Chan
  -- strict thread matches above, loose matches on Subject: below --
2005-07-22 19:32 Stefan Bienert
2005-07-22 22:56 ` Peter Dyballa
     [not found] <mailman.7825.1055479806.21513.help-gnu-emacs@gnu.org>
2003-06-13  7:03 ` key bindings Kai Großjohann
2003-06-13  8:57 ` Barman Brakjoller
2003-06-13  4:49 john doe
2002-12-13 21:20 Bingham, Jay
2002-12-13 18:01 sdieselil
2002-12-13 19:51 ` Kevin Rodgers
2002-12-16 11:53 ` Kester Clegg
2002-12-18 13:10   ` sdieselil
2002-12-18 23:32 ` Koyote
2002-11-01 16:20 Jeff Rancier
2002-11-01 16:56 ` Kevin Rodgers
2002-11-01 18:37   ` Jeff Rancier
2002-11-05 17:12     ` Michael Hudson
2002-11-02  0:23 ` Henrik Enberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87odmcnx3b.fsf@baldur.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.