From 6723c9306897e5d7ffb8f2bd961d9ff75fa5e306 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 11 Jun 2014 18:14:12 -0700 Subject: [PATCH] add os-paste. --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index 1bac0c67..c91ba3ae 100644 --- a/init.el +++ b/init.el @@ -135,6 +135,10 @@ 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 os-paste () + (interactive) + (insert (shell-command-to-string "source ~/.zshrc; ospaste"))) + (defun all-copy (&optional b e) (interactive "r") (os-copy b e)