<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Scarlett</title>
    <description>The latest articles on DEV Community by Scarlett (@scarktt).</description>
    <link>https://dev.to/scarktt</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F656801%2F4dbcf0c0-39b5-417f-8df8-85f9b369edb0.jpeg</url>
      <title>DEV Community: Scarlett</title>
      <link>https://dev.to/scarktt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/scarktt"/>
    <language>en</language>
    <item>
      <title>Installing Doom Emacs on Windows</title>
      <dc:creator>Scarlett</dc:creator>
      <pubDate>Sun, 27 Jun 2021 05:27:41 +0000</pubDate>
      <link>https://dev.to/scarktt/installing-doom-emacs-on-windows-23ja</link>
      <guid>https://dev.to/scarktt/installing-doom-emacs-on-windows-23ja</guid>
      <description>&lt;p&gt;You heard about something called Emacs and a couple of searches later you decided that you were going to try Doom Emacs for the first time, but… Oh, No — Most of the guides show how to make the installation just on Linux— So you think, where do I begin?&lt;/p&gt;

&lt;p&gt;If this is your case, let me show you how I install Doom Emacs on Windows.&lt;/p&gt;

&lt;h2&gt;
  
  
  Previous Requiriments
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://git-scm.com/downloads" rel="noopener noreferrer"&gt;Git&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/BurntSushi/ripgrep/releases" rel="noopener noreferrer"&gt;Ripgrep&lt;/a&gt; → Download the  windows-gnu  version → Unzip the content to a safe directory.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/sharkdp/fd/releases" rel="noopener noreferrer"&gt;fd&lt;/a&gt; → Download the  windows-gnu  version → Unzip the content to a safe directory.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installing Emacs (Vanilla)
&lt;/h2&gt;

&lt;p&gt;To get Emacs on Windows, you have two mainly options. Through MSYS2 or with an Emacs executable (.exe).&lt;/p&gt;

&lt;p&gt;The way that I recommend if you don't have a lot of experience working with Unix/Linux is to directly download the executable from a &lt;a href="https://www.gnu.org/software/emacs/download.html" rel="noopener noreferrer"&gt;nearby GNU mirror&lt;/a&gt; and install it like an another program in windows.&lt;/p&gt;

&lt;p&gt;If you are a MSYS2 user, in MSYS2 you have to use the follow command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pacman&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-S&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;mingw-w64-x86_64-emacs&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Emacs GUI will be at  C:\msys64\mingw64\bin\runemacs.exe&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating an Emacs Files Backup (Optional)
&lt;/h3&gt;

&lt;p&gt;If you installed emacs using the executable, in  HOME  directory rename the &lt;code&gt;.emacs.d&lt;/code&gt; or if you are using MSYS2 the configuration files are in  &lt;code&gt;C:/Users/Scarlett/AppData/Roaming/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Renaming the .emacs.d directory:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mv&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;\.emacs.d\&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;\.emacs.d.old&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Set Environment Variables
&lt;/h2&gt;

&lt;p&gt;Go to Settings → System → About → Advanced System Settings → Advanced → Environment Variables…&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;On &lt;code&gt;User Variables&lt;/code&gt; section→ Click on New button… → Set HOME to the variable name and set your path user &lt;code&gt;C:\Users\USERNAME&lt;/code&gt; to variable value → Finally click on OK&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7adeb4mgg889zi6rai7e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7adeb4mgg889zi6rai7e.png" alt="set user dir in env variables"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Also, on User Variables → Select Path Variable and click on Edit button →

&lt;ul&gt;
&lt;li&gt;Add &lt;code&gt;C:\msys64\mingw64\bin (MSYS2)&lt;/code&gt; or &lt;code&gt;C:\ProgramFiles\Emacs\x86_64\bin (Executable)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Add your &lt;code&gt;C:\path\to\the\ripgrep&lt;/code&gt; directory&lt;/li&gt;
&lt;li&gt;Add your &lt;code&gt;C:\path\to\the\fd&lt;/code&gt; directory&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiauj21msenjd49wfyacu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiauj21msenjd49wfyacu.png" alt="Emacs in the environment variables"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: You don’t need to restart the system but the console (MSYS2, git bash, powershell…)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  Installing Doom Emacs
&lt;/h2&gt;

&lt;p&gt;At this point we should have a vanilla Emacs running correctly in our system, so in the next steps we are going to do a clean installation of Doom Emacs, also I will show you how to do that with both kind of Emacs installation that we have been seeing.    &lt;/p&gt;
&lt;h3&gt;
  
  
  If you installed Emacs with the executable (.exe)
&lt;/h3&gt;

&lt;p&gt;Open PowerShell or gitbash.exe to install Doom. Make sure that you are in your user directory, then clone doom:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;clone&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;https://github.com/hlissner/doom-emacs&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emacs&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;d&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;~/.emacs.d/bin/doom&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: If the powershell or gitbash prompt: &lt;em&gt;fatal: destination path 'C:/Users/Scarlett/.emacs.d' already exists and is not an empty directory.&lt;/em&gt; &lt;br&gt;
We need to remove the &lt;code&gt;.emacs.d&lt;/code&gt; directory&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Once the installation is done, we need to ensure that the necessary packages are installed:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;~/.emacs.d/bin/doom&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;sync&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  If you installed Emacs with MSYS2
&lt;/h3&gt;

&lt;p&gt;Inside the &lt;code&gt;C:/Users/your user/AppData/Roaming/&lt;/code&gt; directory, clone and install doom:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;clone&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;https://github.com/hlissner/doom-emacs&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emacs&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;d&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emacs&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;d&lt;/span&gt;&lt;span class="nx"&gt;/bin/doom&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Once the installation is done, we need to ensure that the necessary packages are installed:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emacs&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;d&lt;/span&gt;&lt;span class="n"&gt;/bin/doom&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;sync&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Now you can start Emacs executing the &lt;code&gt;emacs&lt;/code&gt; command, and it will display vanilla Emacs:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;emacs&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;As you can see, apparently the doom installation is not working, however, we need to take one more step:&lt;/p&gt;

&lt;p&gt;We have to remove the &lt;code&gt;.emacs.d&lt;/code&gt; directory created when we ran Emacs:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rm&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;C:\Users\USER\.emacs.d\&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;We need to create a symbolic link. For that, run &lt;strong&gt;cmd&lt;/strong&gt; as administrator and execute the following command (remember change ‘USER’ on the path):&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mklink&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;/j&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"C:\Users\USER\.emacs.d"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"C:\Users\USER\AppData\Roaming\.emacs.d"&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Installing the Icons
&lt;/h2&gt;

&lt;p&gt;Finally, if you don’t see the icons, you will need to install them, in Emacs type M-x (Alt + x) and write the following:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="n"&gt;all-the-icons-install-fonts&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Go to the folder where you downloaded the fonts and install manually all the files.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F05186vjb3991xe415dga.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F05186vjb3991xe415dga.png" alt="my doom emacs on windows"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, there are more than one way to install Doom Emacs on Windows. If you know others, share in the comments for everyone!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;I hope this post has allowed you to start exploring the Emacs world.&lt;/strong&gt;&lt;br&gt;
Thanks For Reading, Follow Me For More&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>emacs</category>
      <category>doomemacs</category>
      <category>installemacs</category>
    </item>
  </channel>
</rss>
