diff --git a/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx b/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx index 468b90924b4..9ecb0ef1ab7 100644 --- a/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx +++ b/ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx @@ -152,6 +152,10 @@ function Editor(props: EditorProps, ref: any) { 'Insert': 'toggleOverwrite', 'Esc': 'singleSelection', }; + // Add some of the Joplin smart list handling to emacs mode + CodeMirror.keyMap.emacs['Tab'] = 'smartListIndent'; + CodeMirror.keyMap.emacs['Enter'] = 'insertListElement'; + CodeMirror.keyMap.emacs['Shift-Tab'] = 'smartListUnindent'; if (shim.isMac()) { CodeMirror.keyMap.default = {