In my emacs setup, I currently have two key bindings:
C-C c i for
C-c c j for
command1 outputs some text in the minibuffer while
command2 insert the same text in the current buffer.
I am wondering if there's a way to bind
C-c c (so my output appears in messages), but then if
j is pressed after that,
command2 is executed (inserting the same text in the buffer).