all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* coding esq f11
@ 2010-02-17 13:06 Jim Kalb
  2010-02-18  9:23 ` Martin
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Kalb @ 2010-02-17 13:06 UTC (permalink / raw)
  To: help-gnu-emacs

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.

Can someone suggest something?

-- 
Jim Kalb



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: coding esq f11
  2010-02-17 13:06 coding esq f11 Jim Kalb
@ 2010-02-18  9:23 ` Martin
  2010-02-18 12:21   ` Jim Kalb
  0 siblings, 1 reply; 5+ messages in thread
From: Martin @ 2010-02-18  9:23 UTC (permalink / raw)
  To: help-gnu-emacs


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 <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.
>
> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: coding esq f11
  2010-02-18  9:23 ` Martin
@ 2010-02-18 12:21   ` Jim Kalb
  2010-02-18 14:01     ` Martin
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Kalb @ 2010-02-18 12:21 UTC (permalink / raw)
  To: help-gnu-emacs

>>>>> "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

When I do that I get the following in the prompt buffer:

Redo: (repeat-complex-command 1)

I'm using GNU Emacs 23.1.1 if that matters.

jk


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: coding esq f11
  2010-02-18 12:21   ` Jim Kalb
@ 2010-02-18 14:01     ` Martin
  2010-02-18 14:15       ` Jim Kalb
  0 siblings, 1 reply; 5+ messages in thread
From: Martin @ 2010-02-18 14:01 UTC (permalink / raw)
  To: help-gnu-emacs


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 <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
>
> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: coding esq f11
  2010-02-18 14:01     ` Martin
@ 2010-02-18 14:15       ` Jim Kalb
  0 siblings, 0 replies; 5+ messages in thread
From: Jim Kalb @ 2010-02-18 14:15 UTC (permalink / raw)
  To: help-gnu-emacs

>>>>> "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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-18 14:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.