[comp.editors] Mapping ESC O P in gnu emacs

tporczyk@na.excelan.com (Tony Porczyk) (04/06/91)

The News Manager)
Nntp-Posting-Host: na
Organization: Novell, Inc.
Date: Wed, 3 Apr 1991 19:35:19 GMT

I am a new gnu emacs user, and, even though I like it a lot, I am
having problems mapping some keys. How can one remap ESC O P to
'help-for-help ?  I tried every possible syntax, and it didn't work.
The gnu emacs manual that I have is as helpful in writing the init
file as a punch in the nose.  I have no problem defining it using M-x
[global-set-key] command - that works like a charm... What am I doing
wrong?

Tony

pierre@diku.dk (Christian Schytt) (04/21/91)

tporczyk@na.excelan.com (Tony Porczyk) writes:

>I am a new gnu emacs user, and, even though I like it a lot, I am
>having problems mapping some keys. How can one remap ESC O P to
>'help-for-help ?  I tried every possible syntax, and it didn't work.
>The gnu emacs manual that I have is as helpful in writing the init
>file as a punch in the nose.  I have no problem defining it using M-x
>[global-set-key] command - that works like a charm... What am I doing
>wrong?

I'm not quite sure what it is that you are doing! 

My suggestion is to edit the ".emacs"-file in the following way.
Insert a line -

(global-set-key "\M-OP" 'help-for-help) 

- that's all...

The "\M" is for ESC - remember to write the letter "O" capitalized.


-> regards Christian (pierre@freja). "it's not a bug - it's a feature..."


-- 
-> mvh. Christian (pierre@freja). "it's not a bug - it's a feature..."