After edit :

I am using evil-mode. I often record macros very specific to the file I am editing with qq or qw. Is there a way to autosave those macros and the key associated to them when saving the file ? In order to make those macros working when the file is opened again.

  • Save the macro as Elisp code (see insert-kbd-macro'), and give it a name as a command. Add code to to the command to raise an error if the current buffer-file-name` isn't for the appropriate file. – Drew Jan 17 '20 at 17:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.