Closed equwal closed 5 years ago
Hi there,
Actually, aggressive-indent doesn't really "choose" an indentation method. It simply applies the indentation functions configured by the major mode.
If you disable aggressive-ident, and then select the whole region and call M-x indent-region, do you get the same behaviour?
If you disable aggressive-ident, and then select the whole region and call M-x indent-region, do you get the same behaviour?
Yes, I'll have to find out where lisp-mode's indentation is implemented and submit my issue there. Thank you.
In Common Lisp, you often want to have a long vertical keyword list, such as in the
:export
portion ofdefpackage
. This suggests an arrangement such as the following:However, aggressive-indent-mode chooses an indentation method that seems nonsensical (though I may be unaware of another case where this makes sense, I suspect it is accidental):
So we have this alternating behaviour. Of course I can do it like this:
though that isn't idiomatic. Thank you!