view lisp/emulation/pc-mode.el @ 11668:0d5b4a9053c2

(CANNOT_DUMP, VIRT_ADDR_VARIES, LIBS_TERMCAP) (NO_X_DESTROY_DATABASE): Macros deleted. (BSTRING): #undef deleted. (SYSTEM_TYPES): Redefinition deleted. (UNEXEC): New definition. (LD_SWITCH_SYSTEM): Define as empty. (C_SWITCH_MACHINE, LD_SWITCH_MACHINE): New definitions. (OLDXMENU_OPTIONS): New definition.
author Richard M. Stallman <rms@gnu.org>
date Wed, 03 May 1995 21:28:14 +0000
parents 6f5c3bb789a5
children afc9c0b4fbb5
line wrap: on
line source

(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))