I want to set
C-c j with such a function (called
cmd), which can handle subsequent keystrokes.
For example, after typing
C-c j Emacs will execute
cmd, then every subsequent
j will invoke
j keystroke will interrupt this process. It won't invoke
cmd; instead, it acts like a simple keystroke without the prefix
Another example is
11.6 Shift Selection:
If you set
shift-select-modeto the value
permanent, cursor motion keys that were not shift-translated will not deactivate the mark, so, for example, the region set by prior commands can be extended by shift-selection, and unshifted cursor motion keys will extend the region set by shift-selection.