From: Richard M. Stallman Date: Mon, 10 Apr 1995 07:11:42 +0000 (+0000) Subject: Initial revision X-Git-Tag: emacs-19.34~4514 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=601fa27a78a89bc1016749a6d77d61668c8a4067;p=emacs.git Initial revision --- diff --git a/lisp/emulation/pc-mode.el b/lisp/emulation/pc-mode.el new file mode 100644 index 00000000000..b747b65afab --- /dev/null +++ b/lisp/emulation/pc-mode.el @@ -0,0 +1,17 @@ +(defun pc-bindings-mode () + "Set up certain key bindings for PC compatibility. +The keys affected are: + DELETE (and its variants) delete forward instead of backward. + HOME and END move to beginning and end of line + C-HOME and C-END move to beginning and end of buffer." + + (interactive) + (define-key function-key-map [delete] "\C-d") + (define-key function-key-map [M-delete] [?\M-\C-d]) + (global-set-key [C-M-delete] 'kill-sexp) + + (global-set-key [home] 'beginning-of-line) + (global-set-key [end] 'end-of-line) + (global-set-key [C-home] 'beginning-of-buffer) + (global-set-key [C-end] 'end-of-buffer)) +