SmartIndent in CM6

Is there a smartIndent equivalent in CM6?

Yes, see insertNewlineAndIndent and indentSelection, or the getIndentation function for a more primitive interface.