summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2022-07-15 15:35:17 -0500
committerBrad Clawsie <brad@b7j0c.org>2022-07-15 15:35:17 -0500
commit62a7211548778bd6a80269fdbb8bc5b0c61df7ab (patch)
tree5f06e921bd13848859e29ee0073f87092a6cbd46
parent2b6e344b699f2d2be9b8420cc146f7877b7d9a87 (diff)
make autosave dir
-rw-r--r--emacs/dotcustomel14
-rw-r--r--emacs/dotemacs5
2 files changed, 4 insertions, 15 deletions
diff --git a/emacs/dotcustomel b/emacs/dotcustomel
deleted file mode 100644
index 7d27931..0000000
--- a/emacs/dotcustomel
+++ /dev/null
@@ -1,14 +0,0 @@
-(custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(package-selected-packages
- (quote
- (yaml-mode markdown-mode magit go-mode dockerfile-mode))))
-(custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- )
diff --git a/emacs/dotemacs b/emacs/dotemacs
index 7ea420b..9ddca53 100644
--- a/emacs/dotemacs
+++ b/emacs/dotemacs
@@ -209,12 +209,15 @@
;; -------------------------------------------------------------
;; file creation
+;; requires $HOME/.auto-save to exist
(setq auto-save-file-name-transforms
- `((".*" ,(file-name-concat user-emacs-directory "auto-save/") t))
+ `((".*" ,(file-name-concat user-emacs-directory ".auto-save/") t))
make-backup-files nil
create-lockfiles nil
custom-file null-device)
+(make-directory (file-name-concat user-emacs-directory ".auto-save/") :parents)
+
;; -------------------------------------------------------------
;; fix weird tls issue with packages
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")