|
Revision 4220, 2.0 kB
(checked in by miyoshi, 9 months ago)
|
Sync up with Emacs22.2.
|
- Property svn:eol-style set to
LF
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
(defun pc-bindings-mode () |
|---|
| 32 |
"Set up certain key bindings for PC compatibility. |
|---|
| 33 |
The keys affected are: |
|---|
| 34 |
Delete (and its variants) delete forward instead of backward. |
|---|
| 35 |
C-Backspace kills backward a word (as C-Delete normally would). |
|---|
| 36 |
M-Backspace does undo. |
|---|
| 37 |
Home and End move to beginning and end of line |
|---|
| 38 |
C-Home and C-End move to beginning and end of buffer. |
|---|
| 39 |
C-Escape does list-buffers." |
|---|
| 40 |
|
|---|
| 41 |
(interactive) |
|---|
| 42 |
(define-key function-key-map [delete] "\C-d") |
|---|
| 43 |
(define-key function-key-map [M-delete] [?\M-d]) |
|---|
| 44 |
(define-key function-key-map [C-delete] [?\M-d]) |
|---|
| 45 |
(global-set-key [C-M-delete] 'kill-sexp) |
|---|
| 46 |
(global-set-key [C-backspace] 'backward-kill-word) |
|---|
| 47 |
(global-set-key [M-backspace] 'undo) |
|---|
| 48 |
|
|---|
| 49 |
(global-set-key [C-escape] 'list-buffers) |
|---|
| 50 |
|
|---|
| 51 |
(global-set-key [home] 'beginning-of-line) |
|---|
| 52 |
(global-set-key [end] 'end-of-line) |
|---|
| 53 |
(global-set-key [C-home] 'beginning-of-buffer) |
|---|
| 54 |
(global-set-key [C-end] 'end-of-buffer)) |
|---|
| 55 |
|
|---|
| 56 |
(provide 'pc-mode) |
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|