Malabarba / aggressive-indent-mode

Emacs minor mode that keeps your code always indented. More reliable than electric-indent-mode.
850 stars 36 forks source link

Eat spaces at the EOL while I'm typing #116

Closed Pitometsu closed 6 years ago

Pitometsu commented 6 years ago

When I type something like Hello there, folks at scala-mode it eat all the spaces, and I have Hellothere,folks. The only way is C-b and put spaces back when them not at the end of line.

Malabarba commented 6 years ago

Does indent-region also cleanup whitespace in scala-mode? That would explain the behaviour. The only way in which aggressive-indent-mode ever modifies the buffer is by calling indent-region.

Pitometsu commented 6 years ago

Yes, it is. Thank you for suggestion. Seems like it's more scala-mode issue, sorry for disturb.

Malabarba commented 6 years ago

No problem. Happy to help. There's probably a config option to disable this in scala-mode.