1

As of How to stop auto backup in some directory in Emacs, it's possible to configure emacs to backup conditionally.

Is there an option to set inside the file, in the first line, to disable backup for this file only?

serv-inc
  • 816
  • 6
  • 26

1 Answers1

2

According to my test, simply set make-backup-files to nil locally, for example,

M-x add-file-local-variable-prop-line make-backup-files nil
xuchunyang
  • 14,302
  • 1
  • 18
  • 39
  • 1
    which creates a line with a comment character and then `-*- make-backup-files: nil; -*-` Thank you very much, even a command for easy creation – serv-inc Dec 20 '17 at 20:34