abo-abo / ace-window

Quickly switch windows in Emacs
970 stars 86 forks source link

Some keys do not work in `aw-keys` #190

Closed b3n closed 4 years ago

b3n commented 4 years ago

This works fine: (setq aw-keys '(?\C-m ?, ?. ?n ?e ?i ?l ?u ?y))

But this causes problems: (setq aw-keys '(?\s-m ?, ?. ?n ?e ?i ?l ?u ?y))

It results in the error "Unknown key 8388717" when running ace-window.

My intention is to use Super-m rather than Ctrl-m.

abo-abo commented 4 years ago

The issue here is that avy--key-to-char doesn't know how to map ?s-m to a char.

Here's how to fix it:

(add-to-list 'avy-key-to-char-alist '(?\s-m . ?🧐))
b3n commented 4 years ago

That works perfectly, thank you!