unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Binding meta and arrow
@ 2005-05-13 23:27 Ian Crowther
  2005-05-14  7:13 ` Eli Zaretskii
  2005-05-14 15:56 ` Peter Dyballa
  0 siblings, 2 replies; 9+ messages in thread
From: Ian Crowther @ 2005-05-13 23:27 UTC (permalink / raw)


I'm trying to make emacs bind "M-arrow" to things.
I know other applications can use the key combination in the same 
environment (on the console, using putty and screen) and it seems emacs 
itself can handle it; when I go "C-h c M-left" it says "ESC <left> is 
undefined"

I can evaluate "(global-set-key [left] "left was pressed")" and get "left 
was pressed" inserted into the buffer when I press left. All I now need to 
do is try to figure out how to use the alt key on my keyboard.
I've tried the following:
	(global-set-key [M-left] "M-left was pressed")
	(global-set-key [A-left] "A-left was pressed")
	(global-set-key [alt left] "alt left was pressed")
	(global-set-key [meta left] "meta left was pressed")

And because I don't know what they do, I tried the following combinations 
also:
	(global-set-key [H-left] "H-left was pressed")
	(global-set-key [s-left] "s-left was pressed")


None of them work. I know emacs can tell I've pressed M-left though. I'd be 
grateful if somebody could tell me how I'm going wrong trying to bind it.

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.5162.1116027341.2819.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2005-05-18 13:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-13 23:27 Binding meta and arrow Ian Crowther
2005-05-14  7:13 ` Eli Zaretskii
2005-05-14 15:56 ` Peter Dyballa
2005-05-14 23:51   ` Ian Crowther
2005-05-15  9:32     ` Peter Dyballa
2005-05-16  1:01       ` Ian Crowther
2005-05-16  8:50         ` Peter Dyballa
     [not found] <mailman.5162.1116027341.2819.help-gnu-emacs@gnu.org>
2005-05-16 15:49 ` Stefan Monnier
2005-05-18 13:56   ` Ehud Karni

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