chiark / gitweb /
emacs: Don't back up boring files like commit messages.
[profile] / emacs
diff --git a/emacs b/emacs
index 100d87213cdde539a5c7a956fb8a19b9065d089b..f0ac5809550622c68e1ece54f128c337347ec671 100644 (file)
--- a/emacs
+++ b/emacs
 (setq backup-by-copying-when-linked t)
 (setq backup-by-copying-when-mismatch t)
 
+(setq mdw-backup-disable-regexps
+      '("/\\.git/COMMIT_EDITMSG$"
+       "/\\.stgit\\(-edit\\.txt\\|msg\\.txt\\|\\.msg\\)$"))
+
 ;; --- Calculator fiddling ---
 
 (setq calc-settings-file "~/.emacs-calc")