Created
October 24, 2012 15:56
-
-
Save edw/3946915 to your computer and use it in GitHub Desktop.
Emacs OS X clipboard integration for console use.
This file contains hidden or 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 pbcopy (start end) | |
| ;; Useful for when you're doing 'emacs -nw' and you can't select | |
| ;; text in Terminal.app because you've split the terminal with | |
| ;; multiple buffers visible. | |
| (interactive "rSend region to OS X pasteboard:") | |
| (shell-command-on-region start end "pbcopy")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment