On 20 Oct 2008, at 18:57, Marc Feldesman wrote:
Thanks for this. I know this is how emacs does it, but I was looking to find an internal reformatting command inside TextMate. Not a problem. I can easily create a command to access this version of indent.
If you only need the indent fixed, as opposed to changing where line breaks are, then you can use Text → Indent Line / Selection.
For my preferred style of indentation, I think it does a surprisingly good job :)