Commit 9af40217 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

Don't bind keys C-insert, C-delete, and

S-insert if they are already bound.
parent 718b4478
......@@ -34,6 +34,7 @@
;; that are given this kind of overlay should be (interactive "p")
;; functions.
;; If the following keys are not already bound then...
;; C-insert is bound to copy-region-as-kill
;; S-delete is bound to kill-region
;; S-insert is bound to yank
......@@ -94,9 +95,12 @@ add binding to, defaulting to global keymap."
[C-next] [C-previous] [C-home] [C-end]
[M-next] [M-previous] [M-home] [M-end]))
(global-set-key [C-insert] 'copy-region-as-kill)
(global-set-key [S-delete] 'kill-region)
(global-set-key [S-insert] 'yank)
(or (global-key-binding [C-insert])
(global-set-key [C-insert] 'copy-region-as-kill))
(or (global-key-binding [C-delete])
(global-set-key [S-delete] 'kill-region))
(or (global-key-binding [S-insert])
(global-set-key [S-insert] 'yank))
(provide 's-region)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment