A few weeks ago I decided to switch most of my development work to Emacs. Let me say it upfront, I don’t want to take a part in any “holy war” around which text editor is best or whatever. I just want to share my experience here, how did that switch look like from the standpoint of a ‘typical’ Sublime Text user.
I still think that Sublime Text is a magnificent piece of software, it’s beautiful, it’s pretty damn fast, well-configured out of the box, and so on. So you may ask me: Why did you decide to make a switch? To cut a long story short, I just wanted to try something else, something way different that will broaden my perspective. Maybe I will return to Sublime in about a month or two, who knows. I have no intentions to make “why to switch” and “why Emacs” the main topic of this entry and my only goal is to pinpoint what I have missed from Sublime after few weeks of using Emacs and what can I do about it.
Update [24.05.2016]: I’ve finally set up with Emacs prelude. After few months of using it, I could highly recommend it for anyone whether you are a newbie or more experienced Emacs user. Emacs prelude comes with many great packages and features configured out of the box. What’s more, it is easy to customize. Here is the repo where I store my prelude personal configuration.
This is pretty straightforward, install package named auto-complete. I’m using the default configuration.
There is multiple-cursors for that. It’s pretty awesome. You need to bring up your own keybindings.
I love Sublime auto pairing brackets, parenthesis and guess what? There is a package for this in Emacs too. It’s called smartparens and actually, it gives you much more than just inserting pairs. There is also wrapping, unwrapping, rewrapping, expanding, etc. If you want to use that package everywhere, put this into your config.
Quick directory tree when I can look at my project structure or swiftly manipulate with files is a must-have feature of code editor for me. Unfortunately, Emacs doesn’t have anything like that out of the box, but there are some solutions online. My go for is neotree package.
There is no such thing as “Open Project” (or directory) in Emacs but I really like to have some functionalities working in project scope like: opening files, searching in files, project directory tree. Projectile package is a salvage here. The list of features is enormous, but the most important for me are like:
- switching projects
- integration with neotree (switching project causes changing root in neotree, great:)
- go to any file from the project(like Ctrl+P in Sublime)
- search in project files with ag package (this is really cool)
Of course, fuzzy matching has always been a killer feature for Sublime. Once you taste it, you will never live without it. Emacs is using ido completion system by default. You can go for other like helm or grizzly, but I decided to put ido on steroids with available packages and configuration. You can just enable ido flex matching, but I followed a more advised path which is installing flx-ido package along with ido-vertical-mode for more clarity.
To enable flex matching in Emacs command interface (M-x) I installed smex package and adjusted key bindings.
I consider myself as an Emacs Noob so I guess above list will be appended in time and also please correct me if I wrote some gibberish here.