Important Windows Environment Variables

PowerShell and Git encoding problems

To make git log command output properly display on Windows, we need to set a variable named LC_ALL:

LC_ALL="C.UTF-8"

Incorrect home folder in Emacs

This problem is not only about Emacs. If you try to find a file from HOME variable, you may need to define the variable first:

HOME="%USERPROFILE%"
;; place all backup files in one directory
(setq backup-directory-alist `((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms `((".*" ,temporary-file-directory t)))
(setq default-directory (concat (getenv "HOME") "/Workspace"))

More..

Take a look at the other posts about my Windows development environment.