Is there an Emacs variable to turn off backup of files with a specific extension? -


For example, when editing various data files, backup data is of no use and in reality our tool So I want to be able to disable backup for files containing a regexp in names. I hate to mention just other online resources for questions like these, but / but it appears to be the perfect fit for your needs.

Once you have described it on that page, you can call it your .emacs or .emacs.d / init.el Based on your AMACS version:

  (setq auto-mode-bye ('auto-mode-alist') (setq auto-mode- Goodbye (append '(("\\. Ext2 $", sensitive-mode)) Auto-mode-alerts) (Setq Auto-mode-bye (' append '(("\\ .3x $". Sensitive-mode) ) Auto-mode-alert (setq auto-mode-bye ('append' (("\\ .ext4 $". Sensitive-mode))  

Where \ Ext1 $ , \\ .EX2 $ , etc. Then there are regular expressions that match those filenames you do not want to backup.


Comments