Tweak `vertico-map' and "lst:vertico-keymap-bindings" for Darwin

This commit is contained in:
Gerard Vermeulen 2024-06-19 17:34:30 +02:00
parent 0895f76a56
commit b0379ab4ab

View File

@ -1341,32 +1341,34 @@ NOTE: Play with =vertico-buffer-mode=, =vertico-flat-mode=, =vertico-grid-mode=,
;; using `vertico-directory' functions which confuse `find-file'.
;; GAV: Builtin `fido-mode' has more down than up sides: ChatGPT
;; bullshits on enhancing `vertico-mode' completion.
(vertico-mode +1))
(vertico-mode +1)
;; GAV: Darwin shadows the "C-<up>" and "C-<down>" key bindings.
(keymap-set vertico-map "C-(" #'vertico-previous-group)
(keymap-set vertico-map "C-)" #'vertical-next-group))
#+end_src
#+attr_latex: :booktabs yes :float table
#+caption[Vertico key map bindings]:
#+caption: Vertico key map bindings.
#+name: tab:vertico-keymap-bindings
|--------------------------+------------------------------------+---------------------|
|--------------------------+------------------------------------+-------------------|
| command | remap | keys |
|--------------------------+------------------------------------+---------------------|
|--------------------------+------------------------------------+-------------------|
| *vertico-exit* | *exit-minibuffer* | {{{kbd(C-j)}}} |
| *vertico-exit-input* | | {{{kbd(C-RET)}}} |
| *vertico-first* | *beginning-of-buffer* | {{{kbd(M-<)}}} |
| *vertico-first* | *minibuffer-beginning-of-buffer* | {{{kbd(M-<)}}} |
| *vertico-insert* | | {{{kbd(TAB)}}} |
| *vertico-last* | *end-of-buffer* | {{{kbd(M->)}}} |
| *vertico-next-group* | *forward-paragraph* | {{{kbd(C-<down>)}}} |
| *vertico-next-group* | *forward-paragraph* | {{{kbd(C-))}}} |
| *vertico-next* | *next-line-or-history-element* | {{{kbd(<down>)}}} |
| *vertico-next* | *next-line* | {{{kbd(C-n)}}} |
| *vertico-previous-group* | *backward-paragraph* | {{{kbd(C-<up>)}}} |
| *vertico-previous-group* | *backward-paragraph* | {{{kbd(C-()}}} |
| *vertico-previous* | *previous-line-or-history-element* | {{{kbd(<up>)}}} |
| *vertico-previous* | *previous-line* | {{{kbd(C-p)}}} |
| *vertico-save* | *kill-ring-save* | {{{kbd(M-w)}}} |
| *vertico-scroll-down* | *scroll-down-command* | {{{kbd(M-v)}}} |
| *vertico-scroll-up* | *scroll-up-command* | {{{kbd(C-v)}}} |
|--------------------------+------------------------------------+---------------------|
|--------------------------+------------------------------------+-------------------|
** [[https://company-mode.github.io/][Company: a modular in-buffer completion framework for Emacs]]
:PROPERTIES: