Skeleton: a quick text transformers
I use to wrap a selection region with a symbol. For example: wr-love-equation
1 2 3 4 5 (defun wr-love-equation (start end) (interactive "r") (save-excursion (goto-char end) (insert "$") (goto-char start) (insert "$"))) I use it a lot, but as you can see, it is not very flexible.
See, you select a region: Goggins. Then, you call M-x hello-world-skeleton:
1 2 3 4 (define-skeleton hello-world-skeleton "Define a motherfucker" nil "The world hardest motherfucker: " _ "!