Skip to content

Instantly share code, notes, and snippets.

@nacyot
Last active August 29, 2015 14:02
Show Gist options
  • Save nacyot/778296db32f5f0c6e3a6 to your computer and use it in GitHub Desktop.
Save nacyot/778296db32f5f0c6e3a6 to your computer and use it in GitHub Desktop.
emacs : 옆에 있는 term-buffer 복사 붙여넣기 실행 매크로.
(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