Add DOOMDIR envvar

So doom-private-dir can be customized via shell dotfiles (or chemacs).
This commit is contained in:
Henrik Lissner 2018-06-05 17:20:20 +02:00
parent 21779f66ad
commit dd3872dd32
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -49,7 +49,8 @@ Use this for files that change often, like cache files.")
(defvar doom-private-dir
(eval-when-compile
(or (let ((xdg-path
(or (getenv "DOOMDIR")
(let ((xdg-path
(expand-file-name "doom/"
(or (getenv "XDG_CONFIG_HOME")
"~/.config"))))