Paste number 304224: copy/paste in os x emacs

Paste number 304224: copy/paste in os x emacs
Pasted by: phf
When:5 years, 3 months ago
Share:Tweet this! | http://paste.lisp.org/+6IQO
Channel:None
Paste contents:
Raw Source | XML | Display As
       (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.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.