Emacs built-in zap-to-char is powerful function, however sometimes not enough, it would be nice to zap in avy style. I wrote a dirty little function, which does the trick...
(defun my/avy-zap-to-char-2 ()
"Zap to the currently visible CHAR1 followed by CHAR2.
The window scope is determined by `avy-all-windows' (ARG negates it)."
(interactive)
(call-interactively 'set-mark-command)
(call-interactively 'avy-goto-char-2)
(call-interactively 'kill-region))
Since I am not elisp expert, it is very likely that it is not very idiomatic...
Emacs built-in zap-to-char is powerful function, however sometimes not enough, it would be nice to zap in avy style. I wrote a dirty little function, which does the trick...
Since I am not elisp expert, it is very likely that it is not very idiomatic...