Let's say I bind the key to a certain function as follows:
(global-set-key (kbd "C-c =") 'function-foo)
Now, I want the key binding to work as:
After I press C-c =
for the first time, if I want to repeat the function-foo, I don't need to press C-c
again, but simply repeat pressing =
. Then, after I call the function-foo for enough times, I can just press keys other than =
(or explicitly press C-g
) to quit.
How to do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…