I am using the package key-chord. This package allows me to hit x x
quickly instead of hitting M-x
:
(key-chord-define-global "xx" 'execute-extended-command)
And here is another way to to set a key-chord (code below is equivalent to the above):
(global-set-key (kbd "<key-chord> x x") 'counsel-M-x)
How can I set a key-chord for the C-c
prefix?
This question and this post are not the same as mine as he is creating his own prefix, whereas a I just want to bind <key-chord> c c
to C-c