Open mahrud opened 2 years ago
@d-torrance do you happen to know how this would be implemented?
We'd probably need to overhaul the indentation code quite a bit. Right now, we basically just assume it's Lisp code and use parse-partial-sexp
to figure out how many levels of parentheses we're inside and indent that many times. We could probably get inspiration from some other major modes' indent-line-function
's.
I agree this would be a really cool feature!
I think it would be nice to standardize an indent after symbols like
->
. For example:Not sure what other symbols, but probably all symbols associated to binary operators should get an indent if the second operand doesn't come before a newline.
@d-torrance do you happen to know how this would be implemented?