mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
Merge pull request #3023 from simendsjo/userprofile-for-home-on-windows
Fallback to USERPROFILE for HOME on Windows
This commit is contained in:
@ -14,6 +14,10 @@
|
|||||||
(defconst IS-WINDOWS (memq system-type '(cygwin windows-nt ms-dos)))
|
(defconst IS-WINDOWS (memq system-type '(cygwin windows-nt ms-dos)))
|
||||||
(defconst IS-BSD (or IS-MAC (eq system-type 'berkeley-unix)))
|
(defconst IS-BSD (or IS-MAC (eq system-type 'berkeley-unix)))
|
||||||
|
|
||||||
|
;; Unix tools looks for HOME, but this is normally not defined on Windows.
|
||||||
|
(when (and IS-WINDOWS (null (getenv "HOME")))
|
||||||
|
(setenv "HOME" (getenv "USERPROFILE")))
|
||||||
|
|
||||||
;; Ensure `doom-core-dir' is in `load-path'
|
;; Ensure `doom-core-dir' is in `load-path'
|
||||||
(add-to-list 'load-path (file-name-directory load-file-name))
|
(add-to-list 'load-path (file-name-directory load-file-name))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user