Install Doom Emacs on Windows
2023-07-06
Requirements
- Git
- PowerShell
- winget
Install vanilla Emacs and dependencies
Emacs:
winget install GNU.Emacs
winget install BurntSushi.ripgrep.GNU
winget install sharkdp.fd
These binaries will be installed to the following locations:
- emacs ==>
C:\Program Files\Emacs\emacs-28.2\bin\emacs.exe
- ripgrep ==>
C:\Users\serio\AppData\Local\Microsoft\WinGet\Links\rg.exe
- fd ==>
C:\Users\serio\AppData\Local\Microsoft\WinGet\Links\fd.exe
Clone and install Doom Emacs
In user’s home directory:
git clone --depth 1 https://github.com/doomemacs/doomemacs.git .config\emacs
.\.config\emacs\bin\doom install
Create symbolic link:
Remove-Item C:\Users\serio\AppData\Roaming\.emacs.d
New-Item -ItemType SymbolicLink -Path "C:\Users\serio\AppData\Roaming\.emacs.d" -Target "C:\Users\serio\.config\emacs"
Install all-the-icons fonts
- Run Emacs.
M-x all-the-icons-install-fonts
- Select directory to install fonts to (e.g.,
C:\Users\serio\AppData\Roaming\.fonts
). - Open fonts directory in File Explorer.
- Select all fonts in directory, right click on them, and select Install to install them to the system.
- Restart Emacs.
Set environment variables
- Open File Explorer
- Go to This PC
- Right click on background, select ‘Show more options’, then select ‘Properties’.
- On Settings menu, select ‘Advanced system settings’.
- In the System Properties window, select ‘Environment Variables…’.
- In the Environment Variables window, select the ‘Path’ variable under ‘User variables’, and select ‘Edit…’.
- Select ‘New…’.
- Add the following paths:
C:\Program Files\Emacs\emacs-28.2\bin
%USERPROFILE%\.config\emacs\bin