abo-abo / avy

Jump to things in Emacs tree-style
1.71k stars 109 forks source link

avy-orders-alist does not work with avy-goto-line #307

Closed betaprior closed 4 years ago

betaprior commented 4 years ago

I was looking for a way to obtain avy-goto-line behavior described in #232, and as suggested tried using avy-orders-alist, however the following results in an error being thrown when avy-goto-line is invoked: (add-to-list 'avy-orders-alist '(avy-goto-line . avy-order-closest)).

The behavior in question would be desirable as a universal way to navigate by lines relative to the current point, particularly in visual-line-mode.

Edit: it turns out that the visual-line behavior I am looking for is implemented by evilem-motion-{next,previous}-visual-line. I'll leave you to decide whether the error behavior I've observed is a bug or not.

abo-abo commented 4 years ago

Thanks, please test.

betaprior commented 4 years ago

Thanks, works