Skip to content

Instantly share code, notes, and snippets.

@agumonkey
Created June 2, 2014 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agumonkey/da6a6dd6905f4c9bb31a to your computer and use it in GitHub Desktop.
Save agumonkey/da6a6dd6905f4c9bb31a to your computer and use it in GitHub Desktop.
Little elisp wrapper around `xsel`
(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