I believe the environment in which one works is directly responsible for one’s productivity. It’s the reason I think, it’s important to choose the right editor, font, etc.

I used notepad, notepad++ in my Windows days. I have to say I spent a lot of time with notepad++ and it was my favorite at that time. My notepad++ days ended when one of my friends recommended Sublime Text to me. It was the best editor I ever had encountered till that time. The most important thing was that ‘it was cross-platform’.

Switching to Emacs

I switched to Emacs mainly because of it’s philosophy, as I am willing to put up with a much steeper learning curve if it makes me more productive or more comfortable in general. Now that some time has passed I’m much faster with Emacs than on any other text editor I use (namely Sublime Text, gedit and Vim). The other reason is it’s features. Emacs has tonnes of features which are very hard to replicate in other text editors. These may include from Shell mode to IRC-Chat to E-mail to even playing games inside Emacs.

Things to do after installation

  • Enable CUA Mode: This basically enables Ctrl+X, Ctrl+C, Ctrl+V, Ctrl+Z, Shift+Arrow keys. Different key-bindings for such commands are sometimes annoying. Easiest way to do it is Options > Use CUA Keys.
  • Hide the Toolbar: The Toolbar is pretty much useless if you are well versed with the key-bindings. Also it frees up a lot of writing space. You can even disable the Menu Bar (can be accessed by F10 from inside Emacs).
  • Adding Melpa package Archive: This gives you tonnes of packages you won’t find on default archives. There are other managers out there like Marmalade which you can add too, but I feel that it’s not that frequently updated. But nonetheless you can add both of them.
  • Choosing the right theme: I recommend using a theme which is a bit easy on the eyes such as Monokai, Zenburn or Solarized themes. I recommend you install them from the package manager.
  • Choosing the right font: This is more of a personal choice actually. Any monospace font would do the job. You can refer to Dan’s article or Jeff’s Blog for more details.
  • Making your scroll smooth: Emacs Scroll will seem a bit weird to some people who are new to it. To remove the jumpy effect of scroll you can add following lines in your .emacs file
1
2
3
4
5
(setq redisplay-dont-pause t
  scroll-margin 1
  scroll-step 1
  scroll-conservatively 10000
  scroll-preserve-screen-position 1)

Well these are some basic customization which should be done by everyone using Emacs. You can add more features to Emacs by simply searching the package archive.

If you’re a confused with the basic key-bindings for navigation, you may refer to the Emacs Wiki page.

Finally, once you really get the hang of Emacs, it’s basically like dark magic. Check out some videos on the Emacs rocks page to see this magic in action.

If you’re addicted to vi there’s a funny song on GNU’s website : ‘Addicted to vi’ stuck_out_tongue

Comments