I'm using evil-mode, after moving over from Vim about a year ago. I've made a number of customisations, but not yet worked out how to save vim-style keyboard macros.
I can define and run them in evil-mode, using the exact same keys as in Vim.
- qa letter to start recording a macro.
- q to stop recording.
- @a letter to run the macro.
I'd like to save some of these to my init.el
file to use between sessions, but I've not been able to find any reference to this online, and haven't found the right syntax.
How can I save these evil-mode keyboard macros to file? Is there some reason I should be using native Emacs keyboard macros instead, and is there a way I can run these via @a key?