Make meow a subsection of key bindings

So far the meow experiment is not going great.
This commit is contained in:
larstvei 2023-07-28 01:31:47 -07:00
parent eb20c2438e
commit 0f675bce1c

190
init.org
View File

@ -326,105 +326,105 @@
#+end_src #+end_src
* Modal meow ** Modal meow
I have been wanting to try out modal editing. [[https://github.com/meow-edit/meow][meow]] seems like a nice package, I have been wanting to try out modal editing. [[https://github.com/meow-edit/meow][meow]] seems like a nice package,
where I can still use a lot of the ten years of Emacs that are already in my where I can still use a lot of the ten years of Emacs that are already in my
fingers. These are the default settings for qwerty. fingers. These are the default settings for qwerty.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package meow (use-package meow
:config :config
(setq meow-cheatsheet-layout meow-cheatsheet-layout-qwerty) (setq meow-cheatsheet-layout meow-cheatsheet-layout-qwerty)
(add-to-list 'meow-mode-state-list '(vterm-mode . insert)) (add-to-list 'meow-mode-state-list '(vterm-mode . insert))
(add-to-list 'meow-mode-state-list '(comint-mode . insert)) (add-to-list 'meow-mode-state-list '(comint-mode . insert))
(meow-motion-overwrite-define-key (meow-motion-overwrite-define-key
'("j" . meow-next) '("j" . meow-next)
'("k" . meow-prev) '("k" . meow-prev)
'("<escape>" . ignore)) '("<escape>" . ignore))
(meow-leader-define-key (meow-leader-define-key
;; SPC j/k will run the original command in MOTION state. ;; SPC j/k will run the original command in MOTION state.
'("j" . "H-j") '("j" . "H-j")
'("k" . "H-k") '("k" . "H-k")
;; Use SPC (0-9) for digit arguments. ;; Use SPC (0-9) for digit arguments.
'("1" . meow-digit-argument) '("1" . meow-digit-argument)
'("2" . meow-digit-argument) '("2" . meow-digit-argument)
'("3" . meow-digit-argument) '("3" . meow-digit-argument)
'("4" . meow-digit-argument) '("4" . meow-digit-argument)
'("5" . meow-digit-argument) '("5" . meow-digit-argument)
'("6" . meow-digit-argument) '("6" . meow-digit-argument)
'("7" . meow-digit-argument) '("7" . meow-digit-argument)
'("8" . meow-digit-argument) '("8" . meow-digit-argument)
'("9" . meow-digit-argument) '("9" . meow-digit-argument)
'("0" . meow-digit-argument) '("0" . meow-digit-argument)
'("/" . meow-keypad-describe-key) '("/" . meow-keypad-describe-key)
'("?" . meow-cheatsheet)) '("?" . meow-cheatsheet))
(meow-normal-define-key (meow-normal-define-key
'("0" . meow-expand-0) '("0" . meow-expand-0)
'("9" . meow-expand-9) '("9" . meow-expand-9)
'("8" . meow-expand-8) '("8" . meow-expand-8)
'("7" . meow-expand-7) '("7" . meow-expand-7)
'("6" . meow-expand-6) '("6" . meow-expand-6)
'("5" . meow-expand-5) '("5" . meow-expand-5)
'("4" . meow-expand-4) '("4" . meow-expand-4)
'("3" . meow-expand-3) '("3" . meow-expand-3)
'("2" . meow-expand-2) '("2" . meow-expand-2)
'("1" . meow-expand-1) '("1" . meow-expand-1)
'("-" . negative-argument) '("-" . negative-argument)
'(";" . meow-reverse) '(";" . meow-reverse)
'("," . meow-inner-of-thing) '("," . meow-inner-of-thing)
'("." . meow-bounds-of-thing) '("." . meow-bounds-of-thing)
'("[" . meow-beginning-of-thing) '("[" . meow-beginning-of-thing)
'("]" . meow-end-of-thing) '("]" . meow-end-of-thing)
'("a" . meow-append) '("a" . meow-append)
'("A" . meow-open-below) '("A" . meow-open-below)
'("b" . meow-back-word) '("b" . meow-back-word)
'("B" . meow-back-symbol) '("B" . meow-back-symbol)
'("c" . meow-change) '("c" . meow-change)
'("d" . meow-delete) '("d" . meow-delete)
'("D" . meow-backward-delete) '("D" . meow-backward-delete)
'("e" . meow-next-word) '("e" . meow-next-word)
'("E" . meow-next-symbol) '("E" . meow-next-symbol)
'("f" . meow-find) '("f" . meow-find)
'("g" . meow-cancel-selection) '("g" . meow-cancel-selection)
'("G" . meow-grab) '("G" . meow-grab)
'("h" . meow-left) '("h" . meow-left)
'("H" . meow-left-expand) '("H" . meow-left-expand)
'("i" . meow-insert) '("i" . meow-insert)
'("I" . meow-open-above) '("I" . meow-open-above)
'("j" . meow-next) '("j" . meow-next)
'("J" . meow-next-expand) '("J" . meow-next-expand)
'("k" . meow-prev) '("k" . meow-prev)
'("K" . meow-prev-expand) '("K" . meow-prev-expand)
'("l" . meow-right) '("l" . meow-right)
'("L" . meow-right-expand) '("L" . meow-right-expand)
'("m" . meow-join) '("m" . meow-join)
'("n" . meow-search) '("n" . meow-search)
'("o" . meow-block) '("o" . meow-block)
'("O" . meow-to-block) '("O" . meow-to-block)
'("p" . meow-yank) '("p" . meow-yank)
'("q" . meow-quit) '("q" . meow-quit)
'("Q" . meow-goto-line) '("Q" . meow-goto-line)
'("r" . meow-replace) '("r" . meow-replace)
'("R" . meow-swap-grab) '("R" . meow-swap-grab)
'("s" . meow-kill) '("s" . meow-kill)
'("t" . meow-till) '("t" . meow-till)
'("u" . meow-undo) '("u" . meow-undo)
'("U" . meow-undo-in-selection) '("U" . meow-undo-in-selection)
'("v" . meow-visit) '("v" . meow-visit)
'("w" . meow-mark-word) '("w" . meow-mark-word)
'("W" . meow-mark-symbol) '("W" . meow-mark-symbol)
'("x" . meow-line) '("x" . meow-line)
'("X" . meow-goto-line) '("X" . meow-goto-line)
'("y" . meow-save) '("y" . meow-save)
'("Y" . meow-sync-grab) '("Y" . meow-sync-grab)
'("z" . meow-pop-selection) '("z" . meow-pop-selection)
'("'" . repeat) '("'" . repeat)
'("<escape>" . ignore)) '("<escape>" . ignore))
(meow-global-mode 1)) (meow-global-mode 1))
#+end_src #+end_src
* Visual * Visual