define([ "underscore", "config" ], function(_) { var settings = { layoutOrientation: "horizontal", lazyRendering: true, editorFontSize: 14, defaultContent: "\n\n\n> Written with [StackEdit](" + MAIN_URL + ").", commitMsg: "Published with " + MAIN_URL, template: [ '\n', '\n', '\n', '\n', '<%= documentTitle %>\n', '\n', '\n', '\n', '<%= documentHTML %>\n', '' ].join(""), sshProxy: SSH_PROXY_URL, extensionSettings: {} }; try { _.extend(settings, JSON.parse(localStorage.settings)); } catch(e) { // Ignore parsing error } return settings; });