- shortcuts['Mod-1'] = cm => editor.actions.replaceLineStart('##');
- shortcuts['Mod-2'] = cm => editor.actions.replaceLineStart('###');
- shortcuts['Mod-3'] = cm => editor.actions.replaceLineStart('####');
- shortcuts['Mod-4'] = cm => editor.actions.replaceLineStart('#####');
- shortcuts['Mod-5'] = cm => editor.actions.replaceLineStart('');
- shortcuts['Mod-d'] = cm => editor.actions.replaceLineStart('');
- shortcuts['Mod-6'] = cm => editor.actions.replaceLineStart('>');
- shortcuts['Mod-q'] = cm => editor.actions.replaceLineStart('>');
- shortcuts['Mod-7'] = cm => editor.actions.wrapSelection('\n```\n', '\n```');
- shortcuts['Mod-8'] = cm => editor.actions.wrapSelection('`', '`');
- shortcuts['Shift-Mod-e'] = cm => editor.actions.wrapSelection('`', '`');
- shortcuts['Mod-9'] = cm => editor.actions.cycleCalloutTypeAtSelection();
- shortcuts['Mod-p'] = cm => editor.actions.replaceLineStart('-')
- shortcuts['Mod-o'] = cm => editor.actions.replaceLineStartForOrderedList()
+ shortcuts['Mod-1'] = () => editor.actions.replaceLineStart('##');
+ shortcuts['Mod-2'] = () => editor.actions.replaceLineStart('###');
+ shortcuts['Mod-3'] = () => editor.actions.replaceLineStart('####');
+ shortcuts['Mod-4'] = () => editor.actions.replaceLineStart('#####');
+ shortcuts['Mod-5'] = () => editor.actions.replaceLineStart('');
+ shortcuts['Mod-d'] = () => editor.actions.replaceLineStart('');
+ shortcuts['Mod-6'] = () => editor.actions.replaceLineStart('>');
+ shortcuts['Mod-q'] = () => editor.actions.replaceLineStart('>');
+ shortcuts['Mod-7'] = () => editor.actions.wrapSelection('\n```\n', '\n```');
+ shortcuts['Mod-8'] = () => editor.actions.wrapSelection('`', '`');
+ shortcuts['Shift-Mod-e'] = () => editor.actions.wrapSelection('`', '`');
+ shortcuts['Mod-9'] = () => editor.actions.cycleCalloutTypeAtSelection();
+ shortcuts['Mod-p'] = () => editor.actions.replaceLineStart('-');
+ shortcuts['Mod-o'] = () => editor.actions.replaceLineStartForOrderedList();