0

In evil mode, I can save text in named registers with "ay etc. These registers are lost whenever emacs is restarted. Is there a way to save these registers? Vim seems to do this automatically.

2

There are several ways of persisting data in Emacs, such as using desktop.el or savehist. If you have enabled savehist-mode in your init file (like by adding (add-hook 'after-init-hook 'savehist-mode)), it's a matter of defining one extra variable to save:

(setq savehist-additional-variables '(register-alist))

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.