Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9af40217
Commit
9af40217
authored
Jun 21, 1994
by
Richard M. Stallman
Browse files
Don't bind keys C-insert, C-delete, and
S-insert if they are already bound.
parent
718b4478
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
lisp/s-region.el
lisp/s-region.el
+7
-3
No files found.
lisp/s-region.el
View file @
9af40217
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment