abo-abo / avy

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

Process buffer spreading from the current position #294

Closed adithyaov closed 4 years ago

adithyaov commented 4 years ago

Hi, I'm a new emacs user. I used to use easymotion a lot in Vim and am happy to see something very similar in emacs as well.

When processing the current view, Avy does it in a top to bottom fashion. Ie. smaller letter combinations always appear on the top of the view. Consider the following,

Please let me know, if there is a way to emulate this, else, I'll be happy to make a PR with some assistance :-)

PS: I apologize if I did not use the terms correctly.

abo-abo commented 4 years ago

By default avy-goto-char is already configured in this way.

You can configure avy-goto-word-0 like this:

(setq avy-orders-alist
      '((avy-goto-char . avy-order-closest)
        (avy-goto-word-0 . avy-order-closest)))
abo-abo commented 4 years ago

I've put this info on the wiki: https://github.com/abo-abo/avy/wiki/defcustom

adithyaov commented 4 years ago

Aha! Thank you very much. I apologize, I seem to have missed it somehow.