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