dot/emacs: Don't back up files in /tmp or /var/tmp.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 18 Apr 2015 09:17:27 +0000 (10:17 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 18 Apr 2015 09:18:43 +0000 (10:18 +0100)
Lots of /var/tmp/*~ cruft left over from sudo -e editing.

dot/emacs

index b840867..c6c8de9 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 
 (setq mdw-backup-disable-regexps
       '("/\\.git/COMMIT_EDITMSG$"
-       "/\\.stgit\\(-edit\\.txt\\|msg\\.txt\\|\\.msg\\)$"))
+       "/\\.stgit\\(-edit\\.txt\\|msg\\.txt\\|\\.msg\\)$"
+       "^/tmp/" "^/var/tmp/"))
 
 ;; Safe variables.