Getting help with custom key biding


#1

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


#2

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