Browse Source

Emacs: Read cache directory from ~ if no XDG is set

master
Riyyi 2 years ago
parent
commit
11d351f629
  1. 4
      .config/emacs/site-lisp/core/dot-core-variables.el

4
.config/emacs/site-lisp/core/dot-core-variables.el

@ -17,8 +17,8 @@
(defvar dot-etc-dir (expand-file-name "etc" dot-emacs-dir)
"Directory for non-volatile storage.") ; ~/.config/emacs/etc
;; TODO: remove "-modules" when switching over
(defvar dot-cache-dir (expand-file-name "emacs" (getenv "XDG_CACHE_HOME"))
(defvar dot-cache-dir
(expand-file-name "emacs" (if (getenv "XDG_CACHE_HOME") (getenv "XDG_CACHE_HOME") "~/.cache"))
"Directory for cache data.") ; ~/.cache/emacs
(defvar dot/leader-key "SPC"

Loading…
Cancel
Save