Skip to content

Commit

Permalink
Add corfu-mode-map
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Jul 14, 2023
1 parent 8344352 commit 3ba9851
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.org
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Development

- =corfu-quick=: Bugfix.
- =corfu-mode-map=: Add mode map.

* Version 0.37 (2023-07-02)

Expand Down
7 changes: 5 additions & 2 deletions corfu.el
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,11 @@ completion backend in use is expensive."
'((t :inherit shadow :strike-through t))
"Face used for deprecated candidates.")

(defvar-keymap corfu-mode-map
:doc "Keymap used when `corfu-mode' is active.")

(defvar-keymap corfu-map
:doc "Corfu keymap used when popup is shown."
:doc "Keymap used when popup is shown."
"<remap> <move-beginning-of-line>" #'corfu-prompt-beginning
"<remap> <move-end-of-line>" #'corfu-prompt-end
"<remap> <beginning-of-buffer>" #'corfu-first
Expand Down Expand Up @@ -1232,7 +1235,7 @@ Quit if no candidate is selected."
;;;###autoload
(define-minor-mode corfu-mode
"COmpletion in Region FUnction."
:global nil :group 'corfu
:group 'corfu :keymap corfu-mode-map
(cond
(corfu-mode
;; FIXME: Install advice which fixes `completion--capf-wrapper', such that
Expand Down

0 comments on commit 3ba9851

Please sign in to comment.