Learning Emacs

Francisco Barcena - December 21, 2016

My editor of choice is Sublime Text 2. From the terminal, I cd into a project folder and type subl . This opens up the folder in sublime, where I can easily open any project file.

Recently I saw a cool video about an accounting program that uses command line interface Ledger CLI. The guy in the video said he used Vim editor for over a decade, but moved on to use emacs. I had to find out more about emacs! 10 years is a long time, emacs must be better? right?

I saw other videos and I was interested. I know the basic controls to Vim. Yanking, visual mode, cursor navigation, code blocks... and that's about it. I wanted to at least learn the basics to Emacs. So I hit google up. I was disapointed, all of the tutorials were wordy. Much more than this blog post, trust me.

Then I looked for a cheat sheet, and found this. It was ok, I figured out that C = ctrl, and that M = alt...why? I don't know but it works. I think M stands for modifier.

I was still confused. So I hit up google and found this video. That was more helpful than the first "Getting started" documents I came across.

Here's a recap (fresh from memory):

  • split a window horizontally: C-x 2
  • split a window vertically: C-x 3
  • find or open file: C-x 4 f
  • navigate: C-x p / n (line up or line down)
  • search: C-s, then 's' to move to next match, or M-r to switch to regex mode
  • start highlite: C-spacebar

Looking forward to mastering Emacs!


   EMACS