Paste number 304224: | copy/paste in os x emacs |
Pasted by: | phf |
When: | 7 years, 5 months ago |
Share: | Tweet this! | http://paste.lisp.org/+6IQO |
Channel: | None |
Paste contents: |
(defun copy-from-osx ()
(shell-command-to-string "pbpaste"))
(defun paste-to-osx (text &optional push)
(let ((process-connection-type nil))
(let ((proc (start-process "pbcopy" nil "pbcopy")))
(process-send-string proc text)
(process-send-eof proc))))
(setq interprogram-cut-function 'paste-to-osx)
(setq interprogram-paste-function 'copy-from-osx)
This paste has no annotations.