-
Notifications
You must be signed in to change notification settings - Fork 75
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
New 'ledger-indent-region' function #399
base: master
Are you sure you want to change the base?
Conversation
* ledger-mode.el (ledger-mode): Set indent-region-function. * ledger-post.el (ledger-indent-region): New function that indents the region by calling ledger-indent-line for each line. Closes bug ledger#197 Signed-off-by: J. Dekker <[email protected]>
@purcell hi, possible to get a quick review on this? Would be quite nice to have this fixed in master. |
Probably @enderw88 would be better placed to comment on whether this is a desirable fix — I'm not sure about the history of indentation in ledger-mode |
Maybe @bcc32 could take a look? |
As far as I can tell, the default |
ie. what you've implemented feels the same as simply not setting |
Good catch, I wasn't aware that Test input:
Current
With
|
Hmmm... do we have any tests for that, perhaps? You could consider pushing a failing test to show what you'd expect. |
Closes #197