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: 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)








reply via email to

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