[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] externals/corfu 6572247 3/4: Bind [tab] and [return]
From: |
Stefan Monnier |
Subject: |
Re: [elpa] externals/corfu 6572247 3/4: Bind [tab] and [return] |
Date: |
Sat, 26 Jun 2021 10:02:31 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> + (define-key map [tab] #'corfu-complete)
Please avoid binding `tab`: the `tab` event (only generated under GUIs)
is supposed to be remapped to the TAB char-event (aka `C-i`) and this is
what you should bind to if you want your binding to work both under ttys
and GUIs.
More importantly, if you bind to `tab` than this binding will take
precedence over all other bindings to TAB, even those in keymaps that
have higher precedence.
The same holds for `return` vs RET, and `escape` vs ESC.
Stefan
- Re: [elpa] externals/corfu 6572247 3/4: Bind [tab] and [return],
Stefan Monnier <=