Skip to content

Instantly share code, notes, and snippets.

@ktat
Created April 30, 2011 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktat/949875 to your computer and use it in GitHub Desktop.
Save ktat/949875 to your computer and use it in GitHub Desktop.
insert =begin original ... =end original around selected region
(defun oi ()
(interactive)
(insert "=begin original\n\n")
(search-forward-regexp "^\n")
(goto-char (match-beginning 0))
(insert "\n=end original\n")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment