An easymotion-like plugin highly inspired from hop.nvim.
Emacs Motion on Speed!
Move anywhere in your buffer with 1 or 2 keypress.
While there has been past options for jumping over the buffers like avy and ace-jump-mode, they both didn't fit me due to various reasons & limitations.
Hence, this package evolves.
I wouldn't say this is a feature, but in avy if you try to jump to p
in abc p
, then you'll only see 1 char due to buffer overflow, once you press that you'll see futher part of sequence, but this implementation automatically addresses that using 0 length overlay with 'before-string as necessary (as we reach \n
or EOF
).
It requires syohex/emacs-pcre, and pcre(-dev) package installed on your system at build time.
sudo xbps-install -y pcre-devel
sudo pacman --no-confirm pcre
# ...
If you're using elpaca/straight as package manager, write the following package declaration:
(use-package pcre
;; :straight if you use stright.el
:ensure (pcre :host github :repo "syohex/emacs-pcre"
:pre-build ("make" "all")
:files (:default "pcre.el" "pcre-core.so")))
(use-package hop
:ensure (hop :host github :repo "Animeshz/hop.el"))
The library exposes 5 interactive functions that can be accessed via M-x:
Each of the function matches & create hops/jumps for their respective targets in the viewable buffer.
Package also exposes a few user-customizable variables, see the top of hop.el.