update codemirror settings