all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.