annotate lisp/emulation/pc-mode.el @ 11747:afc9c0b4fbb5

entered into RCS
author Richard M. Stallman <rms@gnu.org>
date Sun, 07 May 1995 23:02:13 +0000
parents 6f5c3bb789a5
children f09f5b29f524
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11344
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 (defun pc-bindings-mode ()
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 "Set up certain key bindings for PC compatibility.
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 The keys affected are:
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 DELETE (and its variants) delete forward instead of backward.
11747
afc9c0b4fbb5 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 11344
diff changeset
5 C-BACKSPACE kills backward a word (as C-DELETE normally would).
afc9c0b4fbb5 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 11344
diff changeset
6 M-BACKSPACE does undo.
11344
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 HOME and END move to beginning and end of line
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 C-HOME and C-END move to beginning and end of buffer."
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 (interactive)
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 (define-key function-key-map [delete] "\C-d")
11747
afc9c0b4fbb5 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 11344
diff changeset
12 (define-key function-key-map [M-delete] [?\M-d])
afc9c0b4fbb5 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 11344
diff changeset
13 (define-key function-key-map [C-delete] [?\M-d])
11344
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 (global-set-key [C-M-delete] 'kill-sexp)
11747
afc9c0b4fbb5 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 11344
diff changeset
15 (global-set-key [C-backspace] 'backward-kill-word)
afc9c0b4fbb5 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 11344
diff changeset
16 (global-set-key [M-backspace] 'undo)
11344
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 (global-set-key [home] 'beginning-of-line)
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 (global-set-key [end] 'end-of-line)
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20 (global-set-key [C-home] 'beginning-of-buffer)
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21 (global-set-key [C-end] 'end-of-buffer))
6f5c3bb789a5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22