🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189834

Redefining keys works interactively, but mot in .emacs

#189834
From: Martin Robert Frank
Date: Mon, 05 Nov 1990 22:12
17 lines
1246 bytes
I'm using Emacs on a VT100 terminal, and want to use some of it's special
keys for often used functions.

This works fine interactively in Emacs:
 e.g. M-x global-set-key RET <F1 pressed> 'next-line RET

However using global-set-key in the .emacs initialization file fails:
 e.g. (global-set-key "\eOP" 'next-line)

(The F1 key sends "ESCAPE O P" on a VT100)

Did somebody have the same problem? Could it be that Emacs internally trans-
lates the function key sequences into other sequences?


--
Martin R. Frank    martin@cc.gatech.edu   College of Computing, Georgia Tech
Technical Details
Message-ID: <16450@hydra.gatech.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!mcnc!gatech!prism!arabian.gatech.edu!martin

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,eedbb4732fdf563b,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1990-11-05 14:12:53 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!mcnc!gatech!prism!arabian.gatech.edu!martin
From: martin@arabian.gatech.edu (Martin Robert Frank)
Newsgroups: gnu.emacs.help
Subject: Redefining keys works interactively, but mot in .emacs
Message-ID: <16450@hydra.gatech.EDU>
Date: 5 Nov 90 22:12:53 GMT
Sender: news@prism.gatech.EDU
Reply-To: martin@arabian.gatech.edu (Martin Robert Frank)
Organization: Georgia Institute of Technology
Lines: 17
Posted: Mon Nov  5 23:12:53 1990