From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Newsgroups: gmane.emacs.help Subject: Re: coding esq f11 Date: Thu, 18 Feb 2010 15:01:30 +0100 Organization: Arcor Message-ID: 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 1266504059 11661 80.91.229.12 (18 Feb 2010 14:40:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2010 14:40:59 +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:40:55 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 1Ni7Yg-0000oi-Dn for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 15:40:50 +0100 Original-Received: from localhost ([127.0.0.1]:48575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni7Yf-0003oK-Np for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 09:40:49 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (windows-nt) Cancel-Lock: sha1:6GBF29MEpHY6SbwjlobQJtYc5Mg= Original-Lines: 45 Original-NNTP-Posting-Date: 18 Feb 2010 15:01:30 CET Original-NNTP-Posting-Host: 12d16bdd.newsspool2.arcor-online.net Original-X-Trace: DXC=NbdbdS?M0YA9EHlD; 3YcR4Fo<]lROoRQ8kF 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:71925 Archived-At: Jim Kalb writes: >>>>>> "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 > > When I do that I get the following in the prompt buffer: > > Redo: (repeat-complex-command 1) Hi, push the return key and scroll within the prompt buffer with the up arrow key until you see somthing like (global-set-key (quote ...) (quote g)) copy that line to your .emacs file. Martin > > I'm using GNU Emacs 23.1.1 if that matters. > > jk