Skip to content

allow kbd-macros to also be callbacks#764

Merged
eshrh merged 3 commits intomeow-edit:masterfrom
lanceberge:master
Sep 4, 2025
Merged

allow kbd-macros to also be callbacks#764
eshrh merged 3 commits intomeow-edit:masterfrom
lanceberge:master

Conversation

@lanceberge
Copy link
Contributor

@lanceberge lanceberge commented Aug 28, 2025

meow forces you to bind some of the built-ins e.g. meow-next to keyboard macros. This makes it difficult to do rebind things like C-n in meow-normal-state-keymap because it forces you to have something bound to next-line in order to use meow-next. These changes let you additionally bind your meow kbd macros to callback functions so you can do things like:(setq meow--kbd-forward-line #'next-line) and then rebind C-n

Let me know if you'd like to keep these changes and I can document them

Testing

to test this eval the changed buffer and eval (setq meow--kbd-forward-line #'next-line) then you can verify that meow-next works in addition to the other meow functions that use keyboard macros like meow-prev

@eshrh
Copy link
Member

eshrh commented Sep 3, 2025

Good idea. Please add documentation if you'd like to, or I can merge and do it myself.

@lanceberge
Copy link
Contributor Author

alright no problem, I just added docs

@eshrh eshrh merged commit ff5315b into meow-edit:master Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants