mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-28 19:16:14 +01:00
Even more koy stuff
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
5453379403
commit
9bf5aa7a27
21
emacs-lisp/avy.org
Normal file
21
emacs-lisp/avy.org
Normal file
|
@ -0,0 +1,21 @@
|
|||
:PROPERTIES:
|
||||
:ID: e93571d6-ae50-4aca-8b2f-6ada70655be3
|
||||
:END:
|
||||
#+title: Avy
|
||||
#+filetags: emacs-load
|
||||
|
||||
#+BEGIN_QUOTE
|
||||
~avy~ is a GNU Emacs package for jumping to visible text using a char-based decision tree. See also ~ace-jump-mode~ and ~vim-easymotion~ - ~avy~ uses the same idea.
|
||||
#+END_QUOTE
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package avy
|
||||
:straight t
|
||||
:general
|
||||
(:states '(normal insert)
|
||||
:predicate 'magic_rb-koy-compat-p
|
||||
:keymaps '(magic_rb-koy-treemacs-mode-map magic_rb-koy-magit-mode-map magic_rb-koy-evil-mode-map)
|
||||
"z" (general-key-dispatch 'self-insert-command
|
||||
:timeout 0.25
|
||||
"z" 'avy-goto-char-timer)))
|
||||
#+END_SRC
|
|
@ -31,7 +31,7 @@ This requires ~general.el~.
|
|||
|
||||
(general-def
|
||||
:prefix "SPC"
|
||||
:states '(normal motion)
|
||||
:states '(normal motion visual)
|
||||
"" nil
|
||||
"t" 'evil-window-left
|
||||
"r" 'evil-window-up
|
||||
|
@ -60,7 +60,7 @@ This requires ~general.el~.
|
|||
|
||||
:after (general)
|
||||
:general
|
||||
(:states '(motion normal)
|
||||
(:states '(motion normal visual)
|
||||
:predicate 'magic_rb-koy-compat-p
|
||||
:keymaps 'magic_rb-koy-evil-mode-map
|
||||
"t" 'evil-backward-char
|
||||
|
|
|
@ -33,7 +33,7 @@ Then we actually populate the keymap using [[id:1c6981a5-4371-4657-b4ea-435497a8
|
|||
#+BEGIN_SRC emacs-lisp
|
||||
:after (general)
|
||||
:general
|
||||
(:states '(motion normal)
|
||||
(:states '(motion normal visual)
|
||||
:predicate 'magic_rb-koy-compat-p
|
||||
:keymaps 'magic_rb-koy-vterm-mode-map
|
||||
"t" 'evil-backward-char
|
||||
|
|
Loading…
Reference in a new issue