7.1 Creating your own edt-user.el File

A sample edt-user.el file is provided in the Emacs etc/ directory. You should use it as a guide to learn how you can customize EDT emulation bindings to your own liking. Names used to identify the set of LK-201 keypad and function keys are:

Keypad Keys:
                PF1 PF2 PF3 PF4
                KP7 KP8 KP9 KP-
                KP4 KP5 KP6 KP,
                KP1 KP2 KP3
                KP0     KPP KPE
Arrow Keys:
                LEFT RIGHT DOWN UP
Function Keys:
                F1 F2 F3 F4 F5  F6 F7 F8 F9 F10  F11 F12 F13 F14
                HELP DO  F17 F18 F19 F20

                FIND   INSERT   REMOVE
                SELECT PREVIOUS NEXT

Note: Many VT-200 terminals, and above, steal function keys F1 through F5 for terminal setup control and don’t send anything to the host if pressed. So customizing bindings to these keys may not work for you.

There are three basic functions that do the EDT emulation custom bindings: edt-bind-key, edt-bind-gold-key, and edt-bind-function-key.

The first two are for binding functions to keys which are standard across most keyboards. This makes them keyboard independent, making it possible to define these key bindings for all terminals in the file edt.el.

The first, edt-bind-key, is used typically to bind emacs commands to control keys, although some people use it to bind commands to other keys, as well. (For example, some people use it to bind the VT200 seldom used back-tick key (‘`’) to the function ‘ESC-prefix’ so it will behave like an ESC key.) The second function, edt-bind-gold-key, is used to bind emacs commands to gold key sequences involving alphanumeric keys, special character keys, and control keys.

The third function, edt-bind-function-key, is terminal dependent and is defined in a terminal specific file (see edt-vt100.el for example). It is used to bind emacs commands to LK-201 function keys, to keypad keys, and to gold sequences of those keys.