Guest User

Untitled

a guest
Jul 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. ;; Copy the current line function
  2. (defun copy-the-current-line ()
  3. "Copy the current line into kill-ring"
  4. (interactive)
  5. (copy-region-as-kill (line-beginning-position) (line-end-position))
  6. (message "Copied"))
  7.  
  8. ;; Copy the current line bind
  9. (global-set-key (kbd "M-k") 'copy-the-current-line)
Add Comment
Please, Sign In to add comment