Last active
August 29, 2015 14:02
-
-
Save nacyot/778296db32f5f0c6e3a6 to your computer and use it in GitHub Desktop.
emacs : 옆에 있는 term-buffer 복사 붙여넣기 실행 매크로.
This file contains 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 copy-and-paste-current-line () | |
(interactive) | |
(end-of-line) | |
(set-mark (line-beginning-position)) | |
(kill-region (region-beginning) (region-end)) | |
(other-window 1) | |
(yank) | |
(term-send-input) | |
(other-window 1)) | |
(global-set-key (kbd "C-c l") 'select-current-line) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment