Emacs에서 죽인 텍스트를 화면의 클립보드에 자동으로 넣고 싶습니다. 나는 다른 방향으로 여행하는 것에 대해 별로 신경 쓰지 않는다. 지금은 임시 파일을 통해 이를 수행할 수 있지만 매번 화면의 데이터를 가져오려면 명령을 실행해야 합니다.
답변1
모든 종료된 텍스트를 화면의 클립보드(및 아마도 기본값인 를 interprogram-cut-function
통해 윈도우 시스템의 클립보드)에 푸시하는 함수인 값을 갖도록 변수를 수정할 수 있습니다 . x-select-text
따라서 파일에 다음과 유사한 코드를 추가하게 됩니다 ~/.emacs
.
(setq interprogram-cut-function 'my-interprogram-cut-function)
(defun my-interprogram-cut-function (text)
"... docstring here ..."
;; First, do the default action.
(x-select-text text)
;; Next, push the killed text into screen (somehow).
...)
마지막 부분에는 아마도 start-process
.