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
|
||||
(eval-when-compile
|
||||
(or (let ((xdg-path (concat (or (getenv "XDG_CONFIG_HOME")
|
||||
"~/.config")
|
||||
"/doom/")))
|
||||
(or (let ((xdg-path
|
||||
(expand-file-name "doom/"
|
||||
(or (getenv "XDG_CONFIG_HOME")
|
||||
"~/.config"))))
|
||||
(if (file-directory-p xdg-path) xdg-path))
|
||||
"~/.doom.d/"))
|
||||
"Where your private customizations are placed. Must end in a slash. Respects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue