Skip to content

Two keystroke modal #449

Answered by DogLooksGood
jgarte asked this question in Q&A
May 5, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote
(meow-define-keys 'normal
  '("z a" . beginning-of-buffer)
  '("z b" . end-of-buffer))

Do it this way. It's equivalent to

(define-key meow-normal-mode (kbd "z a") 'beginning-of-buffer)
(define-key meow-normal-mode (kbd "z b") 'end-of-buffer)

The keymaps used in meow are just plain keymaps. The helper functions are not really necessary, pick the way you like.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jgarte
Comment options

Answer selected by jgarte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants