[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Binding same command to two separte keys??
From: |
Karl Hegbloom |
Subject: |
Re: Binding same command to two separte keys?? |
Date: |
Fri, 13 Apr 2007 13:12:41 -0600 |
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. 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)
- Binding same command to two separte keys??, William Case, 2007/04/13
- Re: Binding same command to two separte keys??,
Karl Hegbloom <=
- Re: Binding same command to two separte keys??, Matthew Flaschen, 2007/04/13
- 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