Skip to content

Instantly share code, notes, and snippets.

@benhsu
Created August 24, 2013 18:12
Show Gist options
  • Save benhsu/6329551 to your computer and use it in GitHub Desktop.
Save benhsu/6329551 to your computer and use it in GitHub Desktop.
Change (yank) to yank the same piece of text repeatedly based on a prefix argument. useful for repetitive tasks
(defun multiyank (times) (interactive "p") (loop for i from 1 to times do (yank)))
(global-set-key (kbd "C-y") 'multiyank)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment