From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Kalb Newsgroups: gmane.emacs.help Subject: Re: coding esq f11 Date: Thu, 18 Feb 2010 09:15:34 -0500 Organization: Turnabout Message-ID: <877hqazl2x.fsf@gmail.com.INVALID> References: <87k4ucf1v0.fsf@gmail.com.INVALID> <87fx4yg2f0.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266504432 12993 80.91.229.12 (18 Feb 2010 14:47:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2010 14:47:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 18 15:47:09 2010 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.69) (envelope-from ) id 1Ni7el-0005kR-Ed for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 15:47:07 +0100 Original-Received: from localhost ([127.0.0.1]:47009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni7ek-0006y9-Pk for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 09:47:06 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Injection-Date: Thu, 18 Feb 2010 14:15:35 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="Frp2B1I6vw4q5uU9NAnaxw"; logging-data="4798"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OmfYrTKsZrpjpHLmarqh9" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:e+vNxU0VikeHIiX1pUqM6qyxizw= sha1:cG45N/FTBb4yG0agKPXuPJYHG+s= Original-Xref: news.stanford.edu gnu.emacs.help:176860 X-Mailman-Approved-At: Thu, 18 Feb 2010 09:43:13 -0500 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:71929 Archived-At: >>>>> "Martin" == Martin writes: >> >> I have a macro that I've named "g" that I invoke with >> >> alt-f11: >> >> >> >> (global-set-key (quote [M-f11]) (quote g)) >> >> >> >> I'm trying to get it to work in a terminal (rxvt-unicode) >> >> that interprets alt-f11 as esc-f11 and I get back >> >> >> >> ESQ is undefined >> >> >> >> So I'd like to add a global-set-key that binds it to ESQ >> >> but neither google nor trial-and-error have helped. >> Martin> define the key interactively >> Martin> M-x global-set-key RET ESC f11 RET g RET >> Martin> and grab the correct ELISP line from the prompt buffer >> Martin> M-x repeat-complex-command RET >> Martin> push the return key and scroll within the prompt buffer Martin> with the up arrow key until you see somthing like Martin> (global-set-key (quote ...) (quote g)) Martin> copy that line to your .emacs file. Yay! It works. Thanks. jk