Append slash to DOOMLOCALDIR & DOOMDIR
If needed.
This commit is contained in:
parent
1d09e4655a
commit
63dfd298ca
1 changed files with 11 additions and 9 deletions
12
core/core.el
12
core/core.el
|
@ -53,7 +53,8 @@ decrease this. If you experience stuttering, increase this.")
|
||||||
"The root directory for Doom's modules. Must end with a slash.")
|
"The root directory for Doom's modules. Must end with a slash.")
|
||||||
|
|
||||||
(defvar doom-local-dir
|
(defvar doom-local-dir
|
||||||
(or (getenv "DOOMLOCALDIR")
|
(if-let (localdir (getenv "DOOMLOCALDIR"))
|
||||||
|
(file-name-as-directory localdir)
|
||||||
(concat doom-emacs-dir ".local/"))
|
(concat doom-emacs-dir ".local/"))
|
||||||
"Root directory for local storage.
|
"Root directory for local storage.
|
||||||
|
|
||||||
|
@ -76,13 +77,14 @@ Use this for files that change often, like cache files. Must end with a slash.")
|
||||||
"Where Doom's documentation files are stored. Must end with a slash.")
|
"Where Doom's documentation files are stored. Must end with a slash.")
|
||||||
|
|
||||||
(defvar doom-private-dir
|
(defvar doom-private-dir
|
||||||
(or (getenv "DOOMDIR")
|
(if-let (doomdir (getenv "DOOMDIR"))
|
||||||
(let ((xdg-path
|
(file-name-as-directory doomdir)
|
||||||
|
(or (let ((xdgdir
|
||||||
(expand-file-name "doom/"
|
(expand-file-name "doom/"
|
||||||
(or (getenv "XDG_CONFIG_HOME")
|
(or (getenv "XDG_CONFIG_HOME")
|
||||||
"~/.config"))))
|
"~/.config"))))
|
||||||
(if (file-directory-p xdg-path) xdg-path))
|
(if (file-directory-p xdgdir) xdgdir))
|
||||||
"~/.doom.d/")
|
"~/.doom.d/"))
|
||||||
"Where your private configuration is placed.
|
"Where your private configuration is placed.
|
||||||
|
|
||||||
Defaults to ~/.config/doom, ~/.doom.d or the value of the DOOMDIR envvar;
|
Defaults to ~/.config/doom, ~/.doom.d or the value of the DOOMDIR envvar;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue