Fix naive path concatenation for doom-private-dir #513
This commit is contained in:
parent
b452aded76
commit
5d42b1512b
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue