Created
June 2, 2014 21:05
-
-
Save agumonkey/da6a6dd6905f4c9bb31a to your computer and use it in GitHub Desktop.
Little elisp wrapper around `xsel`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun insert-xsel () | |
(interactive) | |
(with-current-buffer (current-buffer) | |
;; (insert (shell-command-to-string "xsel")))) ;; also hangs some times | |
(insert (shell-command-to-string "xsel -o -t 10 -p")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment