How to have Emacs create backup files with OpenVMS Files-11 style file names with version numbers?

StackOverflow https://stackoverflow.com/questions/11127322

  •  16-06-2021
  •  | 
  •  

سؤال

This SO answer about .emacs file contains:

;; keep backup files neatly out of the way in .~/
(setq backup-directory-alist '(("." . ".~")))

which triggered an idea that it would be handy if Emacs would create backup files using the OpenVMS Files-11 version naming. For example, x.txt;3 or x.txt.3 for the third version of x.txt

هل كانت مفيدة؟

المحلول

Check out this article: http://www.glindra.org/doc/version_number.html. The short story is to add:

(setq version-control t)

in your .emacs file.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top