Bind all essential avy commands

This commit is contained in:
Bozhidar Batsov 2021-02-14 12:57:50 +02:00
parent c38ad8e516
commit 468562e06f
2 changed files with 12 additions and 1 deletions

View file

@ -6,6 +6,8 @@
### Changes ### Changes
* Bind all essential `avy` commands to their recommended keybindings.
### Bugs fixed ### Bugs fixed
## 1.1.0 (2021-02-14) ## 1.1.0 (2021-02-14)

View file

@ -101,8 +101,17 @@
(global-set-key (kbd "C-=") 'er/expand-region) (global-set-key (kbd "C-=") 'er/expand-region)
(global-set-key (kbd "C-c v") 'avy-goto-word-or-subword-1) ;; recommended avy keybindings
(global-set-key (kbd "C-:") 'avy-goto-char)
(global-set-key (kbd "C-'") 'avy-goto-char-2)
(global-set-key (kbd "M-g f") 'avy-goto-line)
(global-set-key (kbd "M-g w") 'avy-goto-word-1)
(global-set-key (kbd "M-g e") 'avy-goto-word-0)
;; additional avy keybindings
(global-set-key (kbd "s-,") 'avy-goto-char)
(global-set-key (kbd "s-.") 'avy-goto-word-or-subword-1) (global-set-key (kbd "s-.") 'avy-goto-word-or-subword-1)
(global-set-key (kbd "C-c v") 'avy-goto-word-or-subword-1)
;; improved window navigation with ace-window ;; improved window navigation with ace-window
(global-set-key (kbd "s-w") 'ace-window) (global-set-key (kbd "s-w") 'ace-window)