just ram

stuff I should remember

Vim to Emacs

This post is part of a series:

  1. Vim to Emacs
  2. Vim to Emacs - Ace Jump Mode
  3. Vim to Emacs - YASnippets
  4. Vim to Emacs - Smart Tab

Why?

Mostly curiosity. As a long time Vim user I’ve heard lots of good and bad about this other ancient editor Emacs. As well as my curiosity I’ve rubbed up against a few rough edges lately mixing Vim and Tmux’s modal modes and problems getting Vim plugin’s working cross platform.

I decided to find out for myself, is Emacs is as good/bad as they say?

Evil

I’ve tried Emacs before but quickly returned to Vim after becoming perplexed at the number of Ctrl + x Ctrl + ?!? keystrokes needed to do the simplest of actions. This time I’m trying the Evil package with gives Vim like editing within Emacs. The best of both worlds? Or too good to be true?

So far I’m very impressed with Evil, once this package was installed I was right at home. You really can’t get way without learning some of the basic Emacs control keys but they are very small in number.

Emacs Redux

Out of the box Emacs is not the most pleasant of experiences, just like Vim it is very raw until you tweak the config. Thankfully Emacs is ridiculously configurable you really can create an editor suited to your own personal tastes. Configuration is done via Emacs Lisp, a little overwhelming for beginners but I do look forward to learning the language. It’s certainly looks a lot nicer than VIML!

I quickly realised hacking on my init.el conifg file with my limited knowledge was not the way to go. I eventually found the excellent Emacs Redux blog and the Prelude configuration project. This project has allowed me to have a solid foundation as I find my feet in Emacs land.

Initial Config

I’ve also changed a few Prelude defaults which can be found in my personal fork.

Conclusion

So far so good. I’m honestly surprised how quickly I’ve settled in with Emacs this time, there is lots here to like. I really don’t feel like I’m deserting Vim, thanks to Evil all that Vim ‘muscle memory’ is coming along with me.

Comments