1. Home
  2. Computing & Technology
  3. Focus on Linux
photo of Juergen Haas

Juergen's Focus on Linux Blog

By Juergen Haas, About.com Guide to Focus on Linux since 2003

Emacs: Taking Editing To New Level

Friday April 11, 2008
Emacs is a text editor developed back in the '70ties when computer operators and programmers used primarily text-based terminal windows to interact with computers. It is a powerful program, but all that power is hidden behind non-intuitive key-bindings. It would be a mistake, however, to think that Emacs is outdated. While it takes longer to learn how to use Emacs than it takes to learn a common word processor, it is worth the effort. It takes longer to learn how to fly an airplane than to learn how to drive a car, but it can save you a lot of time in the long run to make the investment.

In a GUI-based word processor you are limited to the choices offered by the menus and buttons in the window, just like driving a car limits you to following the roads. Emacs forces you to climb into an airplane and learn how to use short cut key bindings and automate editing functions, leaving the constraints of a GUI-based environment behind. While it may require some thinking ahead, once you are in the air you can go to your destination much more efficiently.

To get started, find Emacs or XEmacs in the programs menu of your Linux desktop or type in "emacs &" in a shell window. After emacs starts up, press the Esc-key followed by the x-key and type in "help-with-tutorial" and hit return. A tutorial should start up within Emacs that shows you the basics.

One of the strengths of Emacs is the ease with which you can define and use keyboard macros. Whenever you need to perform repetitive operations, for example when systematically editing a table, you can record the sequence of key strokes and replay the sequence a specified number of times with a few quick key strokes.

Emacs recognizes many different file types and uses suitable color coding of the text. For example if you edit an HTML file, the tags will be colored to be easily identifiable and readable.

To exit Emacs type Ctrl-x Ctrl-c. Emacs still comes with most Linux distributions, including all the major distros. Ubuntu users can install it with the Add/Remove function from the Applications menu. By the way, Emacs stands for Editor MACroS and was originally written by Richard Stallman, Guy Steele, and Dave Moon.

The complete documentation can be found here.

Comments

April 11, 2008 at 9:58 am
(1) Mario says:

I demand equal billing for VI !

June 12, 2008 at 11:25 am
(2) Anon says:

I demand equal billing for VIM!

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore Focus on Linux

More from About.com

  1. Home
  2. Computing & Technology
  3. Focus on Linux

©2008 About.com, a part of The New York Times Company.

All rights reserved.