improve codemirror settings