I've set some variables (kept-new-versions, for one) to a higher number (10, it was 2) since I don't mind having a handful of backup files in my dir.
I did it using C-h v and customizing the variable. They get written into the .emacs file, but after restarting the program, they are at their previous values (2,2).
I have noticed the message "kept-new-versions is a variable defined in `files.el'." and I wonder, whether this is overriding my .emacs settings. Otherwise, I have no idea what it could be.
What I have in my
'(version-control t) ;; Use version numbers for backups. '(kept-new-versions 10) ;; Number of newest versions to keep. '(kept-old-versions 0) ;; Number of oldest versions to keep. '(delete-old-versions t) ;; Don't ask to delete excess backup versions. '(backup-by-copying t) ;; Copy all files, don't rename them.
I expect this to create a backup file after each save, but not more than 10 of them.