I’d like to put something like this in my .emacs:
(local-set-key (kbd "C-c a =")
(lambda () (interactive)
(align-regexp (region-beginning) (region-end) "=")))
But whenever I run it, I get an error “Wrong type argument: numberp, nil”.
What does this error mean and how do I get the effect I’m looking for?
Here you are my dear fellow.
The
(\s-*)prefix is used internally by align-regexpFrom the
align.elJohn Wiegley just neglected to document it, and I guess most people just use align-regexp interactively, or just record and save a macro!