From: Jim Kalb <jimkalb@gmail.com.INVALID>
To: help-gnu-emacs@gnu.org
Subject: Re: coding esq f11
Date: Thu, 18 Feb 2010 09:15:34 -0500 [thread overview]
Message-ID: <877hqazl2x.fsf@gmail.com.INVALID> (raw)
In-Reply-To: wnavdduve11.fsf@aol.de
>>>>> "Martin" == Martin <nospam@nospam.net> 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 <f11> is undefined
>> >>
>> >> So I'd like to add a global-set-key that binds it to ESQ
>> >> <f11> 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
prev parent reply other threads:[~2010-02-18 14:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-17 13:06 coding esq f11 Jim Kalb
2010-02-18 9:23 ` Martin
2010-02-18 12:21 ` Jim Kalb
2010-02-18 14:01 ` Martin
2010-02-18 14:15 ` Jim Kalb [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877hqazl2x.fsf@gmail.com.INVALID \
--to=jimkalb@gmail.com.invalid \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).