I have own minor-mode with 2 (for now) user specific variables (string and int). For now they are dropping to default values each emacs restart. Which is not convenient.
How and where it is better to save them?
For now I found 2 options:
- Binding hook to
kill-emacs-hookand writing it into own file.
Any other option?
To be more precise. My minor mode is running build based on custom build script and one of the variables is a
target-name which user does not change while he is working on one target and changing from time to time while switching between modules.
savehist-additional-variables will be the best choice in my case.