This is a series of post about external Emacs packages that I use.

Avy

avy is a GNU Emacs package for jumping to visible text using a char-based decision tree.

installing

with use-package

1
2
3
4
5
6
7
(use-package avy
  :ensure ;; when `use-package-always-ensure' is nil
  :bind (("C-:" . avy-goto-char)
         ("C-'" . avy-goto-char2)
         ("M-g f" . avy-goto-line)
         ("M-g w" . avy-goto-word-1)
         ("M-g e" . avy-goto-word-0)))

Notes:

  • for evil user, theres a command evil-avy-goto*.

for evil user

1
2
3
4
5
6
7
(use-package avy
  :after evil
  :ensure ;; when `use-package-always-ensure' is nil
  :bind
  (([remap goto-char] . evil-avy-goto-char)
   ([remap goto-line] . evil-avy-goto-line)
   ("M-g l" . evil-avy-goto-line)))