-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example regexp #4
Comments
Thanks. It would be helpful if you provided some example text which you're trying to align. In Emacs regular expressions, |
Hi another thanks from me for the package. I believe the above poster is trying to do something like this:
When using the built in emacs align-regexp you just need to do
This package it appears you have to do |
When you call I just pushed a commit which allows you to have the behavior you desire. (setq ialign-implicit-regexp "\\(\s-*\\)") Doing so will prepend that string to the regexp, if your regexp doesn't have a subgroup expression. So with this you can align the text like in your example by just using the regexp |
Oh wow, thank you. That's quite interesting and funny enough I might prefer the more explicit in that case. Anyway thanks for the speedy response, and that definitely solves my problem. |
Nice package, thanks for putting this together.
In your example you use
\(\s-*[0-9]+\)
I can't get that to work.What works for me is if I go to group -1 and use
\([0-9]+\)
What does the
-*
do in your example? Is this some negation?Also posting all the steps in your gif as commands would be useful.
The text was updated successfully, but these errors were encountered: