emacs: Add and configure avy
This commit is contained in:
parent
56d33886a4
commit
fc71ccbb88
1 changed files with 18 additions and 4 deletions
|
@ -81,6 +81,20 @@
|
||||||
:config (evil-collection-init)
|
:config (evil-collection-init)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
;; Easymotion-like jumping
|
||||||
|
(use-package avy
|
||||||
|
:custom
|
||||||
|
(avy-style 'pre "Insert decision characters instead of overwriting")
|
||||||
|
:general
|
||||||
|
(lmap
|
||||||
|
"jc" '(avy-goto-char :which-key "Jump to character")
|
||||||
|
"j2" '(avy-goto-char-2 :which-key "Jump to 2 character sequence")
|
||||||
|
"jl" '(avy-goto-line :which-key "Jump to line number")
|
||||||
|
"jw" '(avy-goto-word-0 :which-key "Jump to word")
|
||||||
|
"js" '(avy-goto-word-1 :which-key "Jump to word starting with character")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
;; Better defaults that aren't defaults for some reason.
|
;; Better defaults that aren't defaults for some reason.
|
||||||
(use-package better-defaults
|
(use-package better-defaults
|
||||||
;; But don't enable ido-mode...
|
;; But don't enable ido-mode...
|
||||||
|
@ -109,10 +123,10 @@
|
||||||
:commands (consult-ripgrep)
|
:commands (consult-ripgrep)
|
||||||
:general
|
:general
|
||||||
(lmap
|
(lmap
|
||||||
"bb" '(consult-buffer :which-key "switch")
|
"bb" '(consult-buffer :which-key "switch")
|
||||||
"fr" '(consult-recent-file :which-key "recent")
|
"fr" '(consult-recent-file :which-key "recent")
|
||||||
"ha" '(consult-apropos :which-key "apropos")
|
"ha" '(consult-apropos :which-key "apropos")
|
||||||
"ss" '(consult-line :which-key "search")
|
"ss" '(consult-line :which-key "search")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue