Use avy-style keys for ace-window, and add always dispatch version

This commit is contained in:
David Morgan 2023-01-06 16:16:36 +00:00
parent 10ec570ba5
commit 8a8b4965c3
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 9 additions and 1 deletions

View File

@ -68,9 +68,17 @@
(use-package ace-window
:diminish
:config
(defun ace-window-always-dispatch (arg)
"Call `ace-window' with `aw-dispatch-always' set to t, passing through `ARG'."
(interactive "p")
(let ((aw-dispatch-always t))
(ace-window arg)))
:bind
([remap other-window] . ace-window)
("C-<tab>" . ace-window)
("C-x O" . ace-window-always-dispatch)
:custom
(aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l))
:custom-face
(aw-leading-char-face
((t (:foreground "white" :background "red"