11344
|
1 (defun pc-bindings-mode ()
|
|
2 "Set up certain key bindings for PC compatibility.
|
|
3 The keys affected are:
|
11748
|
4 Delete (and its variants) delete forward instead of backward.
|
|
5 C-Backspace kills backward a word (as C-Delete normally would).
|
|
6 M-Backspace does undo.
|
|
7 Home and End move to beginning and end of line
|
|
8 C-Home and C-End move to beginning and end of buffer.
|
|
9 C-Escape does list-buffers."
|
11344
|
10
|
|
11 (interactive)
|
|
12 (define-key function-key-map [delete] "\C-d")
|
11747
|
13 (define-key function-key-map [M-delete] [?\M-d])
|
|
14 (define-key function-key-map [C-delete] [?\M-d])
|
11344
|
15 (global-set-key [C-M-delete] 'kill-sexp)
|
11747
|
16 (global-set-key [C-backspace] 'backward-kill-word)
|
|
17 (global-set-key [M-backspace] 'undo)
|
11344
|
18
|
11748
|
19 (global-set-key [C-escape] 'list-buffers)
|
|
20
|
11344
|
21 (global-set-key [home] 'beginning-of-line)
|
|
22 (global-set-key [end] 'end-of-line)
|
|
23 (global-set-key [C-home] 'beginning-of-buffer)
|
|
24 (global-set-key [C-end] 'end-of-buffer))
|
|
25
|