Minor code cleanup.
Made auto-detect-indentation feature optional in editor settings.