Important Windows environment variables

December 25, 2018 1 minute

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"))