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

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

Re: Binding same command to two separte keys??


From: Reiner Steib
Subject: Re: Binding same command to two separte keys??
Date: Sat, 14 Apr 2007 11:26:44 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux)

On Fri, Apr 13 2007, Matthew Flaschen wrote:

> The correct syntax is:
>
> [?\M-s]
[...]
>>  (global-set-key (kbd "M-s") #'shell-command)
>
> There's no need for kbd here.  It's unnecessary overhead.

There a different ways to do the same job.  Using `kbd' offers the
striking advantage that the user can use the output of `C-h k ...' as
input without a need to think much about Emacs internal handling of
key bindings.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

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