diff options
author | Yann Herklotz <git@yannherklotz.com> | 2023-04-21 17:02:16 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2023-04-21 17:02:55 +0100 |
commit | 78ccefeabb3cf7cee3cd4155317d7adab375d8dc (patch) | |
tree | ad591367d403809a0969990f4f90a663a47fd264 | |
parent | 79615915d803e24ef98ca94b44ad226fc7a05a66 (diff) | |
download | ymh-emacs-78ccefeabb3cf7cee3cd4155317d7adab375d8dc.tar.gz ymh-emacs-78ccefeabb3cf7cee3cd4155317d7adab375d8dc.zip |
Dot not backup files that might contain secrets
-rw-r--r-- | init.el | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -120,7 +120,10 @@ Should be one of `:white-split', `:modified' or `:default'") (setq --backup-directory (expand-file-name "backups" user-emacs-directory)) (if (not (file-exists-p --backup-directory)) (make-directory --backup-directory t)) - (setq backup-directory-alist `(("." . ,--backup-directory))) + (setq backup-directory-alist + `(("^/dev/shm/" . nil) + ("^/tmp/" . nil) + ("." . ,--backup-directory))) (setq make-backup-files t) (setq backup-by-copying t) (setq version-control t) |