Fix naive path concatenation for doom-private-dir #513

This commit is contained in:
Henrik Lissner 2018-05-24 11:49:01 +02:00
parent b452aded76
commit 5d42b1512b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -49,9 +49,10 @@ Use this for files that change often, like cache files.")
(defvar doom-private-dir (defvar doom-private-dir
(eval-when-compile (eval-when-compile
(or (let ((xdg-path (concat (or (getenv "XDG_CONFIG_HOME") (or (let ((xdg-path
"~/.config") (expand-file-name "doom/"
"/doom/"))) (or (getenv "XDG_CONFIG_HOME")
"~/.config"))))
(if (file-directory-p xdg-path) xdg-path)) (if (file-directory-p xdg-path) xdg-path))
"~/.doom.d/")) "~/.doom.d/"))
"Where your private customizations are placed. Must end in a slash. Respects "Where your private customizations are placed. Must end in a slash. Respects