Can I make a shortcut like "OO" invoke a command?


I’m coming from emacs and I have a plugin called KeyChord which lets me invoke commands with shortcuts like “OO” (so when I quickly type two capital O’s in rapid succession, it invokes a command I’ve mapped to the shortcut)

I’ve found the atom plugin called arpeggio, however it does not allow you to create a mapping for the same letter twice in a row. I can map “OP” to something for instance, but not “OO”

Am I missing something obvious here? I don’t mind making a new plugin for this purpose but I don’t want to re-invent the wheel if I don’t have to :stuck_out_tongue:


You might want to take a look at the vim-mode package and see how it does things. Someone was also talking about a Spacemacs package, but I don’t know if it got off the ground.