From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Hegbloom Newsgroups: gmane.emacs.help Subject: Re: Binding same command to two separte keys?? Date: Fri, 13 Apr 2007 13:12:41 -0600 Message-ID: <1176491561.32280.9.camel@oaktree.karlheg.lan> References: <1176490954.3065.75.camel@CASE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176491592 21273 80.91.229.12 (13 Apr 2007 19:13:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2007 19:13:12 +0000 (UTC) Cc: EMACS List To: William Case Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 13 21:13:04 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HcRCh-0004Fc-H0 for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Apr 2007 21:13:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcRH0-0007PH-0A for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Apr 2007 15:17:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HcRGn-0007OH-BD for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 15:17:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HcRGl-0007N2-RM for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 15:17:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcRGl-0007Mt-IW for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 15:17:15 -0400 Original-Received: from nz-out-0506.google.com ([64.233.162.229]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HcRCS-0004tv-DZ for help-gnu-emacs@gnu.org; Fri, 13 Apr 2007 15:12:48 -0400 Original-Received: by nz-out-0506.google.com with SMTP id s1so808971nze for ; Fri, 13 Apr 2007 12:12:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=upgq9Z1PS10G+6TDBM02O6aT5kac01AvqJsLIJ0qUQRhBJZehxxwHf9uWigXKnqKy6ODMsuDISfRsiL0at1a5paxaZULkeRxW6op75QzbQ0L9gGYHUAdpnlqkHA+tS+qM7kdPVeCC/UEJn5Y1N4vYViMDSaidXDUFe7e7w4ffOc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=GjexuaafJh7Wk/3QroxF3sbBXsptbpfFszT1z7HaEF+MboCWS0C/qeXyTjBJ/NwLzuVNi16E9nhkqEzIJn3lUPTcECTFTuPan4G+hFdg5BReDdNYRXJNtnF4tttsNmqEDN9bZbzVJFuBZUILboGLcZdS72MylDOvKk2i2ppGVZk= Original-Received: by 10.114.177.1 with SMTP id z1mr1073420wae.1176491565507; Fri, 13 Apr 2007 12:12:45 -0700 (PDT) Original-Received: from ?192.168.1.64? ( [67.166.69.81]) by mx.google.com with ESMTP id m29sm947631poh.2007.04.13.12.12.43; Fri, 13 Apr 2007 12:12:44 -0700 (PDT) In-Reply-To: <1176490954.3065.75.camel@CASE> X-Mailer: Evolution 2.10.1 X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42653 Archived-At: 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)