Skip to content

Instantly share code, notes, and snippets.

@hayeah
Created November 29, 2009 18:22
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 hayeah/245001 to your computer and use it in GitHub Desktop.
Save hayeah/245001 to your computer and use it in GitHub Desktop.
(defun my-align-regexp (start end regexp)
"repeat alignment with respect to
the given regular expression"
(interactive "r\nsAlign regexp: ")
(align-regexp start end
(concat "\\(\\s-*\\)" regexp) 1 1 t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment