mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix: empty HOME on Windows
This was accidentally removed in68d8364
. Amend:68d8364aea
This commit is contained in:
@ -53,6 +53,13 @@ envvar will enable this at startup.")
|
||||
(defconst IS-WINDOWS (memq system-type '(cygwin windows-nt ms-dos)))
|
||||
(defconst IS-BSD (or IS-MAC (eq system-type 'berkeley-unix)))
|
||||
|
||||
(when-let (realhome
|
||||
(and IS-WINDOWS
|
||||
(null (getenv-internal "HOME"))
|
||||
(getenv "USERPROFILE")))
|
||||
(setenv "HOME" realhome)
|
||||
(setq abbreviated-home-dir nil))
|
||||
|
||||
|
||||
;;
|
||||
;;; Directory variables
|
||||
|
Reference in New Issue
Block a user