+avy leader sg -> M-s for avy-goto-char-2

This commit is contained in:
2020-09-01 23:26:52 +01:00
parent 3254c17d6f
commit e76fabccbe

View File

@@ -886,15 +886,18 @@ Collection of snippets, activate after yasnippet has been loaded.
:after yasnippet) :after yasnippet)
#+end_src #+end_src
** Avy ** Avy
Setup avy with leader. Setup avy with leader. As I use =avy-goto-char-2= a lot, use the =M-s=
bind.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package avy (use-package avy
:after evil :after evil
:general :general
(leader (leader
:infix "s" :infix "s"
"l" #'avy-goto-line "l" #'avy-goto-line)
"g" #'avy-goto-char-2)) (general-def
:states 'normal
(kbd "M-s") #'avy-goto-char-2))
#+end_src #+end_src
** Ace window ** Ace window
Though evil provides a great many features in terms of window Though evil provides a great many features in terms of window