abo-abo / avy

Jump to things in Emacs tree-style
1.74k stars 111 forks source link

Matching on arbitrary char sequences #178

Closed drorbemet closed 7 years ago

drorbemet commented 7 years ago

In the following use case avy--generic-jump should select multiple arbitrary string-patterns independent of the distinction between sexp and symbols. Which avy function would lend itself for this?

(avy-with
    avy-goto-?
  (avy--generic-jump
   (regexp-quote "(deftest\\|(defun")
   nil
   avy-style))
abo-abo commented 7 years ago

Again, drop regexp-quote and you're fine.