Skip to content

Instantly share code, notes, and snippets.

@PhilHudson
Created April 29, 2015 10:00
Show Gist options
  • Save PhilHudson/51d7cf146595b8ac3cf8 to your computer and use it in GitHub Desktop.
Save PhilHudson/51d7cf146595b8ac3cf8 to your computer and use it in GitHub Desktop.
(defun ph/yank-quote (&optional arg)
"Yank, passing optional prefix ARG to `yank', and quote."
(interactive "*P")
(yank arg)
(let
((end-marker (copy-marker (point-marker) t))
(start-marker (copy-marker (mark))))
(string-rectangle start-marker end-marker "> ")
(fill-region start-marker end-marker)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment