From 9ff81e612cc6376e0efe4a850144fb07e9125705 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 14 Apr 2014 18:19:53 -0700 Subject: [PATCH] Add all copy --- init.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index b506c25b..fad64092 100644 --- a/init.el +++ b/init.el @@ -145,6 +145,12 @@ Return a list of installed packages or nil for every package not installed." (interactive "r") (shell-command-on-region b e "source ~/.zshrc; cat | smart_copy")) +(defun all-copy (&optional b e) + (interactive "r") + (os-copy b e) + (tmux-copy b e) + (kill-ring-save b e)) + ;; ============================================================================= ;; tmux ;; ============================================================================= @@ -218,7 +224,7 @@ Return a list of installed packages or nil for every package not installed." (global-set-key (kbd "C-c C-c") 'comment-dwim) (global-set-key (kbd "C-c t") 'testify-run-test) (global-set-key (kbd "C-c C-o") 'testify-run-case) -(global-set-key (kbd "C-c w") 'tmux-copy) +(global-set-key (kbd "C-c w") 'all-copy) (global-set-key (kbd "C-c e") 'os-copy) (global-set-key (kbd "C-x O") (lambda () (interactive) (other-window -1))) (global-set-key (kbd "C-c t") 'testify-run-test)