Move cache directory creation earlier in the config
This commit is contained in:
@@ -129,6 +129,10 @@ Variables for directories, leader keys, etc.
|
|||||||
|
|
||||||
(defvar dot/hidpi (getenv "HIDPI")
|
(defvar dot/hidpi (getenv "HIDPI")
|
||||||
"Whether the primary screen is HiDPI.")
|
"Whether the primary screen is HiDPI.")
|
||||||
|
|
||||||
|
;; Create cache directory
|
||||||
|
(unless (file-directory-p dot-cache-dir)
|
||||||
|
(make-directory dot-cache-dir t))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Customizations
|
* Customizations
|
||||||
@@ -868,8 +872,6 @@ https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-sce
|
|||||||
Set file paths for built-in features like: auto-saves, backups, etc.
|
Set file paths for built-in features like: auto-saves, backups, etc.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(unless (file-directory-p dot-cache-dir)
|
|
||||||
(make-directory dot-cache-dir t))
|
|
||||||
|
|
||||||
;; Set Directory locations
|
;; Set Directory locations
|
||||||
(setq auto-save-list-file-prefix (concat dot-cache-dir "/auto-save/"))
|
(setq auto-save-list-file-prefix (concat dot-cache-dir "/auto-save/"))
|
||||||
|
|||||||
Reference in New Issue
Block a user