Multiple character key binding?

Multiple character key binding?

Post by Rik Bel » Sun, 02 Dec 1990 12:28:00

How can I get a key emitting a multiple-key sequence (like the
ANSI-X3.64 "ESC [ A", "ESC[220z", ...) bound to a keymap?
I can't get the following to work in my .emacs init file
(I get a "Error in init file" message):

(global-set-key "\e [ A" 'previous-line)                ; R8
(global-set-key "\e [ B" 'next-line)                    ; R14
(global-set-key "\e [ C" 'forward-char)         ; R12
(global-set-key "\e [ D" 'backward-char)                ; R10

(global-set-key "\e [ 2 2 0 z" 'backward-word)  ; R13
(global-set-key "\e[222z" 'forward-word)        ; R15
(global-set-key "\e[214z" 'beginning-of-line)   ; R7
(global-set-key "\e[216z" 'end-of-line)         ; R9
(global-set-key "\e[210z" 'scroll-backward)     ; R3
(global-set-key "\e[213z" 'scroll-forward)      ; R6

Also, I've found the compile options to enable X-windows support,
but haven't found any doc about it. Is there any?

        Thank you.

Rik Belew

EECS Department  (C-014)
San Diego, CA 92093        
619 / 534 - 2601


1. Binding key to multiple commands, highlighting

vasu> 1) I would like to customize C-x C-c so that in addition to invoking
vasu> save-buffers-kill-emacs, the buffer 'Buffer List' is also saved in
vasu> some file either automatically or after query. This provides info
vasu> about all files which were visited/modified during the session. Any
vasu> help in implementing this will be appreciated.

"kill-emacs-hook" is called whenever a "kill-emacs" command (C-x C-c) is
executed. You can have it do just about whatever you want.

vasu> 2) Is it possible to highlight regions in reverse video, as in X
vasu> windows?

Try epoch or lucid emacs.

--Rat                               PGP Public Key Block available upon request
||||| | | | |  |  |  |   |   |    |    |    |   |   |  |  |  |  | | | | | |||||

I've seen things you people wouldn't believe. Attack ships on fire off the
shoulder of Orion. I've watched c-beams glitter in the dark near the Tanhauser
Gate. All those moments will be lost in time like tears in rain. Time to die.
                                        --Roy Batty, from the movie Bladerunner

2. Help! Read this, please!

3. Binding multiple buffers to multiple threads of an inferior Lisp?

4. Problems with configuration register 0x2102

5. Binding Multiple functions to a single key

6. Game Gear as front end

7. binding meta key to another key?

8. Pocket Outlook problems

9. binding the alt key to be the meta key in micro emacs / pc?

10. Question: Key Bindings and The Meta Key

11. key binding to function keys

12. key bind for the combination of a number of key strokes?

13. key bindings for Sun function keys