Skip to content

Instantly share code, notes, and snippets.

@notactuallypagemcconnell
Last active July 2, 2019 22:14
Show Gist options
  • Select an option

  • Save notactuallypagemcconnell/8a3e01cff18f7f339c5c0f45c5c6e07f to your computer and use it in GitHub Desktop.

Select an option

Save notactuallypagemcconnell/8a3e01cff18f7f339c5c0f45c5c6e07f to your computer and use it in GitHub Desktop.

Spacemacs: A quick intro from a Vim person who used to not like Spacemacs

Installation

Follow their docs. They worked fine for me on OSX and Linux. They are here

Opening Spacemacs

So, this is pretty easy. You cd to where ya feel like editing some code and doing things in general. then run emacs ., and were rolling. You'll see something like this if you have already opened it the first time per the installation instructions.

splash screen

It might be a little weird to start if youre used to seeing files or a shell, but dont worry.

Opening a shell

Spacemacs relies a lot on the pattern of <SPACE><SPACE> (pressing space twice). If we do this, we can see some functions we can run. This technically means M-x in emacs speak. To be frank I dont totally understand it and find that notation unintuitive. I think it means Control + X, I havent tried. I'm sticking with my vim bullshit its why I came.

Emacs' shell is called eshell. We can open it after typing <SPACE><SPACE> by typing eshell. You'll notice it fuzzy-completes. You will probably be able to whack enter after hitting like, esh, if you want.

This will get us to a point where we can start doing unix-y things. But wheres the editor?

Well, my experience so far is emacs is less an editor and more a toolkit, and before I generally get things in my editor I need to get things running. So, we'll start off by getting our app running.

In my case we need to run several things to get stuff working:

  1. Foreman
  2. Rails server
  3. Webpack dev server
  4. Docker
  5. Rails console
  6. Logs

Thats a lot. But, turns out we can keep it all here really easily and transition super simply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment