Emacs, VSCode, and me
Tags: emacs, vscode
Published: 2019-07-15 15:08:44

---
title: Emacs, VSCode, and me
published: true
tags: emacs,vscode
canonical_url: https://thomashartmann.dev/blog/emacs-vscode-and-me
cover_image: https://thomashartmann.dev/images/vscode-emacs.svg
---
<div><p>It was about a year ago. My life was good. I had things in order (mostly). And most importantly: I had an editor I liked. VSCode and I had been going steady for about a year. With its excellent support for Python and JS—which was most of my work in those days—I rarely ever needed to venture into new territory. It felt good. I was happy.</p>
<p><em>I was happy!</em></p>
<p>Then it all came crashing down. A good friend and I decided to hang out and program one Saturday. The sky was a clear blue, the temperature high, and summer was just around the corner. We got into his office, sat down, and started setting up. That’s when it happened. Completely out of left field:</p>
<p>— <em>So I found this cool thing the other day. It’s called Spacemacs.</em></p>
<p>Spacemacs?</p>
<p>— <em>Yeah, it’s Emacs, but with “evil mode”. So you can get your Vim bindings!</em></p>
<p>It’s true. I had been seduced into the deep, dark depths of Vim about a year prior, and had never found my way out. Never tried, really. I had let it consume me, and there was no way I’d let it go. Not for the world. Of course I had been using the VSCode Vim plugin, but while it had given me most of the functionality I wanted, I did sometimes find myself longing for something more. So I thought I ought to at least give this Spacemacs thing a go.</p>
<p>With one eyebrow slightly cocked, I went ahead and downloaded Spacemacs. I had tried to run Emacs previously, but had been met with that sheer, white light that comes as the default, and had been unable to figure out how to even close the program without resorting to my mouse. Naturally, I was skeptical.</p>
<p>So I launch it, resist the white light as I choose ‘evil mode’ and watch the window turn dark. The logo appears. It says it’s loading. Fetching packages. Eventually, the words “Spacemacs is ready” appear at the bottom of the window. I get it up and running and do some basic programming. I don’t know what it is, but something just feels … <em>good</em>. I spend the rest of the day with Spacemacs, and when the time comes, I don’t want to let it go. I go home, dreaming of what I’ll do to it. VSCode is nowhere to be found.</p>
<p>That weekend, neither Emacs nor I left my apartment. We were consumed in the fiery throes of passion and configuration, and when the sun rose the following Monday, I knew my heart had been turned.</p>
<hr>
<p>In truth, it would be another few weeks before I left VSCode completely and migrated to Emacs even at work, but it was coming. <em>Oh, it was coming</em>. To this day, I still stay faithful to Emacs for most of my endeavors, only venturing out when there is something I can’t find proper support for (and even then, it’s just a matter of time before I take matters into my own hands!).</p>
<h2 id="what-i-love-about-it">What I love about it</h2>
<dl>
<dt>The extensibility</dt>
<dd>The fact that you can make it do pretty much <em>whatever</em> you want to is nothing short of amazing. I have never seen an editor this powerful and versatile.
</dd>
<dt>It’s the ‘self-documenting editor’</dt>
<dd>Everything in Emacs is documented. You ever wonder what a key does? <code>C-h k &lt;key (or combination)&gt;</code> has got you covered. You wonder what the value of a variable is? <code>C-h v &lt;variable name&gt;</code>. Want help with Emacs? <code>C-h C-h</code>. <em>Boom.</em>
</dd>
<dt>EXWM</dt>
<dd>The Emacs X Window Manager. Just recently, I finally got it set up to the point where Emacs now manages all of my windows (yes, for <em>all</em> applications) for me. How many other editors can do that? Your move, <em>’Code</em>.
</dd>
<dt>Emacs Lisp</dt>
<dd>I think Lisp is a pretty cool guy. He lets you configure emacs down to the bone. Much like the <em>monarch of beef patties</em>, he let’s you ‘have it your way’, and honestly, that’s the way I like it.
</dd>
</dl>
<h2 id="what-im-not-crazy-about">What I’m not crazy about</h2>
<dl>
<dt>Its single threaded nature</dt>
<dd>This is usually not much of an issue, unless you somehow end up freezing the main thread, which can happen. In that case, best restart your editor.
</dd>
<dt>Lacklustre support for certain languages</dt>
<dd>While most languages I use are very well supported in Emacs, I struggle with others. In particular, Microsoft’s .NET languages have been hard to get set up properly.
</dd>
<dt>Emacs Lisp</dt>
<dd>Yeah, it’s back. Mostly because I don’t really know Lisp yet (relax; it’s on my todo list). Until you’re comfortable with it, it makes changing your config just that little bit trickier.
</dd>
</dl>
<h2 id="what-i-miss-from-the-vscode-days">What I miss from the VSCode days</h2>
<p>So it’s not <em>all</em> roses. There are some things I miss from VSCode.</p>
<dl>
<dt>The ease of use</dt>
<dd>I can’t really that the learning curve is steeper; getting started with VSCode is just <em>so</em> easy. Also, installing extensions is a piece of cake.
</dd>
<dt>The massive amount of plugins</dt>
<dd>Not that Emacs doesn’t have packages, but most communities I see seem to have settled on VSCode as their darling, so that’s just where you’re going to see the most activity and up-to-date plugins in a lot of languages.
</dd>
<dt>The amount of documentation</dt>
<dd>I mentioned that Emacs is self-documenting. This is great. But it’s also … over 40 years old (1976?! <em>Gee!</em>)! So finding documentation online is tricky in comparison.
</dd>
<dt>The community</dt>
<dd>Everybody loves <del>Raymond</del> VSCode. That’s great and makes it super easy to find articles on how to set it up and configure it and so on. Need help? Ask <em>anyone</em>. Chances are they’re using VSCode. The Emacs community is great too, but much, <em>much</em> smaller.
</dd>
</dl>
<hr>
<p>In the end, do I regret it? Not for a second. I think it’s a worthwhile tradeoff if you can take the initial learning curve and are willing to put some time into your editor. So if you feel inspired, should <em>you</em> do it? All I can say is that if you pay the upfront cost, Emacs will return it tenfold.</p>
    </div>
  </section>