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 10:23:24 +0100 Organization: Arcor Message-ID: References: <87k4ucf1v0.fsf@gmail.com.INVALID> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266486092 15700 80.91.229.12 (18 Feb 2010 09:41:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2010 09:41:32 +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 10:41:30 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 1Ni2sz-0004Dg-Cd for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 10:41:29 +0100 Original-Received: from localhost ([127.0.0.1]:36375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni2sy-00011K-Ca for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 04:41:28 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!news-2.dfn.de!news.dfn.de!news.uni-stuttgart.de!news.belwue.de!newsfeed.arcor.de!newsspool4.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:APP0oz4eLcYg2GQCJfPZIeEV2to= Original-Lines: 32 Original-NNTP-Posting-Date: 18 Feb 2010 10:23:24 CET Original-NNTP-Posting-Host: 3a9142ae.newsspool4.arcor-online.net Original-X-Trace: DXC=3nP0?i^i7N; ^cW`WBF>WQ<4IUKa\o2YjZLf28EJcFmD5VE; VWekZ>[:<79dgY0=[VHBG4^kIDBm6X]D; Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: news.stanford.edu gnu.emacs.help:176853 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:71921 Archived-At: Jim Kalb 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. > > Can someone suggest something? Hi, define the key interactively M-x global-set-key RET ESC f11 RET g RET and grab the correct ELISP line from the prompt buffer M-x repeat-complex-command RET Cheers Martin -- parozusa at web dor de