Guest User

Untitled

a guest
May 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ;; clone line as on netbeans
  2. (defun clone-line-below()
  3. "Copy the current line below."
  4. (interactive)
  5. (beginning-of-line)
  6. (kill-line)
  7. (yank)
  8. (newline)
  9. (yank)
  10. (beginning-of-line))
  11.  
  12. (global-set-key [C-S-down] 'clone-line-below)
  13.  
  14. (defun clone-line-above()
  15. "Copy the current line above."
  16. (interactive)
  17. (beginning-of-line)
  18. (kill-line)
  19. (yank)
  20. (newline)
  21. (yank)
  22. (beginning-of-line))
  23.  
  24. (global-set-key [C-S-up] 'clone-line-above)
Add Comment
Please, Sign In to add comment