abo-abo / avy

Jump to things in Emacs tree-style
1.72k stars 110 forks source link

Put point at beginning of region after avy-action-mark #272

Open hmelman opened 5 years ago

hmelman commented 5 years ago

I only played with it briefly but after marking a word using avy-action-mark I found I wanted point at the beginning of region instead of at the end (as it currently is left) so that I could follow it with other commands like downcase-word.

At first I thought I'd want different behavior if I travelled backwords vs forwards to the word, but that wasn't the case. In all cases I wanted point at the beginning of the word.

I suggest changing the default behavior or at least making it a user option as to wear to leave point.

abo-abo commented 5 years ago

I don't see a reason to change the default behavior. I think having point ahead of mark is quite canonical. Besides, there's always C-x C-x.

However, a defcustom can be added to customize the behavior. PRs welcome.