[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coding esq f11
From: |
Jim Kalb |
Subject: |
Re: coding esq f11 |
Date: |
Thu, 18 Feb 2010 09:15:34 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
>>>>> "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