Created
August 24, 2013 18:12
-
-
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
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 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