Re: Binding meta and arrow

2005-05-18 Thread Ehud Karni
On Mon, 16 May 2005 11:49:52 -0400, Stefan Monnier <[EMAIL PROTECTED]> wrote: > > Although "ESC a" is equivalent to "M-a", this is not true of function keys > like "left" where "M-left" is not the same as "ESC left". That is true only if you don't set `meta-prefix-char' to another value. I set it

Re: Binding meta and arrow

2005-05-17 Thread Ian Crowther
Try first 'M-x global-set-key global-set-key' and then do M-x repeat-complex-command. Thanks! I have managed to get the key bound. That had been annoying me for ages. In case anybody else has the same problem, it was: (global-set-key (quote [27 left]) 'beginning-of-line) I cannot bind [

Re: Binding meta and arrow

2005-05-17 Thread Peter Dyballa
Am 16.05.2005 um 03:01 schrieb Ian Crowther: I cannot bind [(alt v)] I think this works when you change the cmd and option keys. Then alt/option does not select from the keyboard another layer of characters but works as the Meta key. Cmd is then the alt modifier. (setq mac-command-key-is-meta ni

Re: Binding meta and arrow

2005-05-17 Thread Stefan Monnier
> 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 is > undefined" Although "ESC a" is equi

Re: Binding meta and arrow

2005-05-15 Thread Peter Dyballa
Am 15.05.2005 um 01:51 schrieb Ian Crowther: it does exactly what I expect. I press left and it goes to the line start. The following still don't work: (global-set-key [M-left] 'beginning-of-line) (global-set-key [A-left] 'beginning-of-line) Try first 'M-x global-set-key global-s

Re: Binding meta and arrow

2005-05-14 Thread Ian Crowther
Just use a name of a function instead of the string. For example: (global-set-key [M-left] 'beginning-of-line) (The way you used global-set-key is meant for macros: the thing inside quotes should be a sequence of one or more keys, it cannot be an arbitrary string, and it certainly isn't displa

Re: Binding meta and arrow

2005-05-14 Thread Peter Dyballa
Am 14.05.2005 um 01:27 schrieb Ian Crowther: 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") For these to work you need to have the Hyper and super modifiers defined --

Re: Binding meta and arrow

2005-05-14 Thread Eli Zaretskii
> From: "Ian Crowther" <[EMAIL PROTECTED]> > Bcc: > Date: Sat, 14 May 2005 00:27:27 +0100 > > 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 o