In my emacs setup, I currently have two key bindings: C-C c i
for command1
and C-c c j
for command2
. 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 command1
to 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).