Created
December 12, 2014 12:34
-
-
Save mickesv/46cf5710dc1bf3ad843a to your computer and use it in GitHub Desktop.
Yank and add some lines around the yank (I use this a lot in e-mails)
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 msv-yank-with-lines (arg) | |
(interactive "P") | |
(let ((num 20)) | |
(when arg | |
(setq num arg)) | |
(insert "\n" (make-string num ?-) "\n") | |
(yank) | |
(insert "\n" (make-string num ?-) "\n") | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment