add auto-complete mode, newline and indent, and remove old clipboard function