Skip to content

Commit

Permalink
Remove H-* keys from example keybindings (#724)
Browse files Browse the repository at this point in the history
Commit 33414b9 had breaking changes for
configuration, and this updates the examples to match.
  • Loading branch information
accelbread authored Feb 16, 2025
1 parent 0314cd1 commit 96fecf5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
4 changes: 1 addition & 3 deletions KEYBINDING_COLEMAK.org
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ Add it to your configuration and call it before ~(meow-global-mode 1)~.
#+begin_src emacs-lisp
(defun meow-setup ()
(setq meow-cheatsheet-layout meow-cheatsheet-layout-colemak)
(meow-motion-overwrite-define-key
(meow-motion-define-key
;; Use e to move up, n to move down.
;; Since special modes usually use n to move down, we only overwrite e here.
'("e" . meow-prev)
'("<escape>" . ignore))
(meow-leader-define-key
'("?" . meow-cheatsheet)
;; To execute the originally e in MOTION state, use SPC e.
'("e" . "H-e")
'("1" . meow-digit-argument)
'("2" . meow-digit-argument)
'("3" . meow-digit-argument)
Expand Down
2 changes: 1 addition & 1 deletion KEYBINDING_DVORAK.org
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Add it to your configuration and call it before ~(meow-global-mode 1)~.
'("0" . meow-digit-argument)
'("/" . meow-keypad-describe-key)
'("?" . meow-cheatsheet))
(meow-motion-overwrite-define-key
(meow-motion-define-key
;; custom keybinding for motion state
'("<escape>" . ignore))
(meow-normal-define-key
Expand Down
2 changes: 1 addition & 1 deletion KEYBINDING_DVP.org
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Add it to your configuration and call it before ~(meow-global-mode 1)~.
(setq meow-cheatsheet-layout meow-cheatsheet-layout-dvp)
(meow-leader-define-key
'("?" . meow-cheatsheet))
(meow-motion-overwrite-define-key
(meow-motion-define-key
;; custom keybinding for motion state
'("<escape>" . ignore))
(meow-normal-define-key
Expand Down
5 changes: 1 addition & 4 deletions KEYBINDING_QWERTY.org
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ Add it to your configuration and call it before ~(meow-global-mode 1)~.
#+begin_src emacs-lisp
(defun meow-setup ()
(setq meow-cheatsheet-layout meow-cheatsheet-layout-qwerty)
(meow-motion-overwrite-define-key
(meow-motion-define-key
'("j" . meow-next)
'("k" . meow-prev)
'("<escape>" . ignore))
(meow-leader-define-key
;; SPC j/k will run the original command in MOTION state.
'("j" . "H-j")
'("k" . "H-k")
;; Use SPC (0-9) for digit arguments.
'("1" . meow-digit-argument)
'("2" . meow-digit-argument)
Expand Down
2 changes: 1 addition & 1 deletion TUTORIAL.org
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ however then the original command on k/j is not accessible. To access the origin
Here's an example: you want use ~j~ as ~next-line~ globally.

#+begin_src emacs-lisp
(meow-motion-overwrite-define-key '("j" . next-line))
(meow-motion-define-key '("j" . next-line))
#+end_src

The settings we made works in all special modes.
Expand Down

0 comments on commit 96fecf5

Please sign in to comment.