[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Key bindings
From: |
Malte Spiess |
Subject: |
Re: Key bindings |
Date: |
Thu, 29 Mar 2007 22:16:37 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
SteveFKI <stephen.brown@eu.fkilogistex.com> writes:
> Tassilo Horn-3 wrote:
>> 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!
>> _______________________________________________
>> help-gnu-emacs mailing list
>> help-gnu-emacs@gnu.org
>> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>>
>>
>
> I tried this, and I get the same problem. However, when I type C-h k <home>,
> it emacs tells me that
>
> "<find> runs the command search-forward
> (search-forward STRING &optional BOUND NOERROR COUNT)
> which is an interactive built-in function.
>
> Sounds like I am trying to override a function, which cannot be overriden.
>
> By the way I am using emacs version 21.3.1, and not in aposition to
> upgrade.
Okay, I would recommend it, too!
> Any more ideas?
Yes, it seems like the key you pressed is not recognised as <home>, but
as <find>. So you probably should write
(global-set-key (kbd "<C-find>") 'some-function)
instead. Very strange keyboard setup btw.
Greetings
Malte
- Key bindings, SteveFKI, 2007/03/29
- Message not available
- Message not available