Add setting for indent
Modify for restore cursor
Fix a little