Getting help with custom key biding


Hello everyone, small question I’m trying to setup a key-bidding such that ‘ctrl+shift+m’ produces the following string ‘\( \)’ and put the cursor in the middle, could you guys help me out?.

Thank you


Have you consider using a snipet ?

If you really want to bind a keymaps on inserting some text and move the cursor on that text (things that a snippet does pretty well), have a look at this topic :

To add the cursor movement, use this line of code :

atom.workspace.getActivePaneItem().moveRight 2