summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2013-12-31 14:10:44 (GMT)
committer Jaromil <jaromil@dyne.org>2013-12-31 14:11:00 (GMT)
commit24655db582cbd5c15dec52bc1bcdd0a6cfe5c398 (patch)
tree0cec3ad42c483a6d7099f1da100bf915ff35f044
parentd02e216d4a41b7fcd59337d08c5b6cbd162cf4b9 (diff)
intuitive command aliases for cut/paste
-rw-r--r--elisp/keymap.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/elisp/keymap.el b/elisp/keymap.el
index bd705a1..cb5e8b6 100644
--- a/elisp/keymap.el
+++ b/elisp/keymap.el
@@ -44,6 +44,15 @@
(global-set-key (kbd "s-y") 'yank-pop)
; sloppy hyper - alt swap
(global-set-key (kbd "s-w") 'kill-ring-save)
+; intuitive command names
+(defun cut () (interactive)
+ (if (region-active-p)
+ (clipboard-kill-region (region-beginning) (region-end)) ))
+(defun copy () (interactive)
+ (if (region-active-p)
+ (clipboard-kill-ring-save (region-beginning) (region-end)) ))
+(defun paste () (interactive) (clipboard-yank) )
+
; M-g to go to specified line in buffer.