simplified editor's options management

This commit is contained in:
ilvalle
2013-10-23 14:33:15 +02:00
parent ff7cb99bfe
commit 290cb2f1a7
3 changed files with 19 additions and 35 deletions
@@ -48,16 +48,16 @@
mode: { name: '{{=filetype}}'{{if filetype=='python':}},version: 2,singleLineStringErrors: false, {{pass}} },
{{pass}}
lineNumbers: true,
indentUnit: current_tabwidth,
indentWithTabs: current_indentwithtabs,
tabSize: current_tabwidth,
indentUnit: {{=editor_settings['tabwidth']}},
indentWithTabs: {{=editor_settings['indentwithtabs']}},
tabSize: {{=editor_settings['tabwidth']}},
styleActiveLine: true,
autoCloseTags: current_closetag,
theme: current_theme,
autoCloseTags: {{=editor_settings['closetag']}},
theme: "{{=editor_settings['theme']}}",
lineWrapping: true,
foldGutter: current_codefolding,
foldGutter: {{=editor_settings['codefolding']}},
gutters: ["CodeMirror-linenumbers", "breakpoints", "CodeMirror-foldgutter"],
keyMap: current_editor,
keyMap: "{{=editor_settings['editor']}}",
matchBrackets: true,
autofocus: false,
height: "350px",