Skip to content

Commit

Permalink
Merge pull request #1128 from fukamachi/lem-command-keymap
Browse files Browse the repository at this point in the history
Add vi-mode:*command-keymap* again.
  • Loading branch information
cxxxr authored Oct 9, 2023
2 parents 146a1ab + 2c1e61a commit 726b5cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extensions/vi-mode/states.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
:state-modeline-green
:change-element-by-state)
(:export :*normal-keymap*
:*command-keymap*
:*motion-keymap*
:*insert-keymap*
:*inactive-keymap*
Expand Down Expand Up @@ -43,6 +44,11 @@
(define-keymap *outer-text-objects-keymap*)
(define-keymap *inner-text-objects-keymap*)

(define-symbol-macro *command-keymap*
(progn
(warn "*command-keymap* is deprecated. Use *normal-keymap* instead.")
*normal-keymap*))

(defvar *inactive-keymap* (make-keymap))

(define-command return-last-read-char () ()
Expand Down
2 changes: 2 additions & 0 deletions extensions/vi-mode/vi-mode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
:insert
:*motion-keymap*
:*normal-keymap*
:*command-keymap*
:*insert-keymap*
:*inner-text-objects-keymap*
:*outer-text-objects-keymap*
Expand All @@ -40,6 +41,7 @@
:define-text-object-command
:*motion-keymap*
:*normal-keymap*
:*command-keymap*
:*insert-keymap*
:*visual-keymap*
:*operator-keymap*
Expand Down

0 comments on commit 726b5cf

Please sign in to comment.