As I only use kill-ring-save after I used set-mark-command
, I wanted to try using its binding also for another command. However I'm not able to get this to work with an additional if. I don't know how to pass the arguments to avy-goto-char-2
with the interactive stuff.
How can I determine if the mark is active, and use that information to pick a function to call?