[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Binding same command to two separte keys??
From: |
Matthew Flaschen |
Subject: |
Re: Binding same command to two separte keys?? |
Date: |
Fri, 13 Apr 2007 15:17:10 -0400 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20070306) |
Karl Hegbloom wrote:
> On Fri, 2007-04-13 at 15:02 -0400, William Case wrote:
>> I have set (global-set-key [(M-s)] 'shell-command) in my .emacs.
>> I also want to keep the M-! shell-command binding
>>
>> Nothing happens when I use M-s, nor do I get an error message.
>
> I think that the syntax of the expression describing the key is
> incorrect.
The correct syntax is:
[?\M-s]
Try looking at the documentation of the `kbd' macro (F1 f
> kbd). You can use it there, like:
>
> (global-set-key (kbd "M-s") #'shell-command)
There's no need for kbd here. It's unnecessary overhead.
Matt Flaschen
- Binding same command to two separte keys??, William Case, 2007/04/13
- Re: Binding same command to two separte keys??, Karl Hegbloom, 2007/04/13
- Re: Binding same command to two separte keys??,
Matthew Flaschen <=
- Re: Binding same command to two separte keys??, William Case, 2007/04/13
- Re: Binding same command to two separte keys??, Matthew Flaschen, 2007/04/13
- Re: Binding same command to two separte keys??, David Hansen, 2007/04/13
- Re: Binding same command to two separte keys??, Matthew Flaschen, 2007/04/13
- Re: Binding same command to two separte keys??, David Hansen, 2007/04/13
- Message not available
- Re: Binding same command to two separte keys??, Rjjd, 2007/04/13
- Re: Binding same command to two separte keys??, Matthew Flaschen, 2007/04/13
- Message not available
- Re: Binding same command to two separte keys??, Tim X, 2007/04/14
- Message not available
- Re: Binding same command to two separte keys??, Joost Kremers, 2007/04/13
- Re: Binding same command to two separte keys??, Reiner Steib, 2007/04/14