dotfiles/editors/emacs/bjeanes/01_osx.el

12 lines
390 B
EmacsLisp
Raw Normal View History

2012-08-28 04:30:01 +10:00
;; (defun mac-copy ()
;; (shell-command-to-string "pbpaste"))
;; (defun mac-paste (text &optional push)
;; (let ((process-connection-type nil))
;; (let ((proc (start-process "pbcopy" "*Messages*" "pbcopy")))
;; (process-send-string proc text)
;; (process-send-eof proc))))
;; (setq interprogram-cut-function 'mac-paste)
;; (setq interprogram-paste-function 'mac-copy)