Skip to content

Instantly share code, notes, and snippets.

@dstcruz
Created November 9, 2012 18:26
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 dstcruz/4047355 to your computer and use it in GitHub Desktop.
Save dstcruz/4047355 to your computer and use it in GitHub Desktop.
Nice to use with haskell :)
(defun my-align-single-equals ()
"Align on a single equals sign (with a space either side)."
(interactive)
(align-regexp
(region-beginning) (region-end)
"\\(\\s-*\\) = " 1 0 nil))
(global-set-key (kbd "C-c a") 'my-align-single-equals)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment