{"slug": "doom-emacs-windows-installation-steps", "title": "Doom Emacs Windows installation steps", "summary": "This article provides step-by-step instructions for installing Doom Emacs on Windows, beginning with installing Emacs via Chocolatey and cloning the Doom Emacs repository. It then explains how to set the HOME environment variable, run the Doom install script, and optimize performance by using Emacs as a client-server application. Finally, it details how to create shortcuts for `emacsclientw` and configure the Emacs server to launch automatically on startup.", "body_md": "More guides:\nThe easiest way to install Emacs is by using Chocolatey:\n$ choco install emacs\nVerify that it is installed by running this in a terminal:\n$ emacs\nA default Emacs window should open.\nClone the Doom Emacs git repository. Run this command in Powershell:\n$ git clone https://github.com/doomemacs/doomemacs.git ~/.emacs.d\nNext you need to set your environment variables to include HOME. Open the start menu and type \"environment\" and select \"Edit the System Environment Variables\". Click on \"Environment Variables\" on the lower right of the menu. Under \"System Variables\", add a new entry with the name \"HOME\" and value equal to the location of your user directory. This should be something like \"C:\\Users<USER>\".\nAfter this is done, you can run the doom emacs install script. Run this command in Powershell:\n$ ~/.emacs.d/bin/doom install\nYou should now be able to run Doom Emacs by just typing emacs\nin a terminal. You might notice that it may be slow\nto start and hang sometimes. This is because you are meant to use Emacs as a client/server application. Emacs comes with\na server that you can run and then connect to with emacs clients. This makes it launch a lot faster.\nLaunch an emacs server by running:\n$ emacs --daemon\nConnect to it by running:\n$ emacsclient -c\nWhen you installed Emacs through Chocolatey, it created binaries for emacs\n, emacsclient\n, emacsclientw\n, and runemacs\n.\nemacsclientw\nis the one you want to use since it will create an emacs client in a new window. To make a shortcut to this\nto use on the taskbar:\n- Launch emacs by running\nemacs\nin a terminal. - Pin the resulting window to the taskbar.\n- Right-click on the taskbar icon to see a popup dialog and right-click on emacs and select \"Properties\".\n- Change the target to: \"C:\\tools\\emacs\\bin\\emacsclientw.exe -c -a=\"\n- This will then launch an emacs client. If a server isn't running, it will start one and connect to it.\nTo automatically start the emacs server whenever your computer restarts:\n- Make a shortcut in the \"C:\\Users<USER>\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\" directory\n- The target will be \"C:\\tools\\emacs\\bin\\runemacs.exe --daemon\"", "url": "https://wpnews.pro/news/doom-emacs-windows-installation-steps", "canonical_source": "https://gist.github.com/hunterlawson/acf4f65f30867d1642926ad91bc9839d", "published_at": "2023-03-27 06:47:22+00:00", "updated_at": "2026-05-23 11:06:01.745736+00:00", "lang": "en", "topics": ["developer-tools", "open-source"], "entities": ["Doom Emacs", "Emacs", "Chocolatey", "Powershell"], "alternates": {"html": "https://wpnews.pro/news/doom-emacs-windows-installation-steps", "markdown": "https://wpnews.pro/news/doom-emacs-windows-installation-steps.md", "text": "https://wpnews.pro/news/doom-emacs-windows-installation-steps.txt", "jsonld": "https://wpnews.pro/news/doom-emacs-windows-installation-steps.jsonld"}}