macos远程服务器emacs粘贴
Last Updated:2022-08-12
远程服务器上,emacs粘贴到远程服务器上
我采用的方案是这个post 提到的,修改了我emacs配置了里头的defun copy-from-osx部分
(defun copy-from-osx ()
"Handle copy/paste intelligently on osx."
(let ((pbpaste (purecopy "/usr/bin/pbpaste")))
(if (and (eq system-type 'darwin)
(file-exists-p pbpaste))
(let ((tramp-mode nil)
(default-directory "~"))
(shell-command-to-string pbpaste)))))