I'm using the
ryo-modal package that enables you to define your own keys in modal editing. I'm trying to makem
f move the cursor to the end of the word, insert a whitespace and then exit the modal mode. This works fine without the
:then '(insert " ") part. However, I would really like to see my original idea working. Thanks in advance.
(ryo-modal-key "f" 'forward-word :then '(insert " ") :exit t)