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?


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
|improve this answer|||||
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.